mirror of
https://github.com/BradNut/personal-website-sveltekit
synced 2025-09-08 23:20:18 +00:00
Some checks failed
Run_Svelte_Unit_on_PRs / test (push) Has been cancelled
32 lines
723 B
TypeScript
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;
|