playwright.config.ts: Start dev server automatically
This commit is contained in:
parent
6e5ccf679a
commit
8b1faf110c
1 changed files with 8 additions and 0 deletions
|
|
@ -4,6 +4,14 @@ import { defineConfig, devices } from "@playwright/test";
|
|||
* @see https://playwright.dev/docs/test-configuration
|
||||
*/
|
||||
export default defineConfig({
|
||||
/* Run your local dev server before starting the tests */
|
||||
webServer: {
|
||||
cwd: '..',
|
||||
command: 'npm run dev',
|
||||
url: 'http://localhost:6274',
|
||||
reuseExistingServer: !process.env.CI,
|
||||
},
|
||||
|
||||
testDir: "./e2e",
|
||||
/* Run tests in files in parallel */
|
||||
fullyParallel: true,
|
||||
|
|
|
|||
Loading…
Reference in a new issue