personal-website-sveltekit/playwright.config.ts

17 lines
412 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'
}
};
export default config;