personal-website-sveltekit/playwright.config.ts
Bradley Shellnut ac05ca8d24
Some checks failed
Run_Svelte_Unit_on_PRs / test (push) Has been cancelled
Moving envs to integration and adding playwright.
2025-08-24 23:20:26 -07:00

32 lines
723 B
TypeScript

import type { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
webServer: {
command: 'pnpm -s exec svelte-kit sync && pnpm run build && pnpm run preview',
port: 4173,
timeout: 180_000,
reuseExistingServer: true
},
testDir: 'tests',
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
use: {
baseURL: 'http://localhost:4173'
},
// Run on main browsers: Chromium (Chrome), Firefox, WebKit (Safari)
projects: [
{
name: 'chromium',
use: { browserName: 'chromium' }
},
{
name: 'firefox',
use: { browserName: 'firefox' }
},
{
name: 'webkit',
use: { browserName: 'webkit' }
}
]
};
export default config;