25 lines
630 B
TypeScript
25 lines
630 B
TypeScript
import { defineConfig } from '@playwright/test';
|
|
|
|
export default defineConfig({
|
|
testDir: '../../e2e',
|
|
webServer: [
|
|
{
|
|
command:
|
|
'rm -f data/e2e.db && DB_PATH=./data/e2e.db npm -w @flashcard/backend run db:migrate && DB_PATH=./data/e2e.db npm -w @flashcard/backend run dev',
|
|
cwd: '../..',
|
|
port: 3000,
|
|
reuseExistingServer: false,
|
|
timeout: 60_000,
|
|
},
|
|
{
|
|
command: 'npm -w @flashcard/frontend run dev',
|
|
cwd: '../..',
|
|
port: 5173,
|
|
reuseExistingServer: false,
|
|
timeout: 60_000,
|
|
},
|
|
],
|
|
use: { baseURL: 'http://localhost:5173' },
|
|
timeout: 30_000,
|
|
});
|