diff --git a/package.json b/package.json index 86a625aa..247ff896 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "start": "vinxi start", "codegen": "graphql-codegen", "e2e:tests": "npx playwright test --project=webkit", - "e2e:tests:ci": "BASE_URL=http://127.0.0.1:8080 npx playwright test --project=webkit", + "e2e:tests:ci": "CI=true BASE_URL=http://127.0.0.1:8080 npx playwright test --project=webkit", "e2e:install": "npx playwright install webkit && npx playwright install-deps ", "fix": "npx @biomejs/biome check . --fix && stylelint **/*.{scss,css} --fix", "format": "npx @biomejs/biome format src/. --write", diff --git a/playwright.config.ts b/playwright.config.ts index 0d7f20e1..15b5acdd 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -65,7 +65,8 @@ export default defineConfig({ ], /* Run local dev server before starting the tests */ - webServer: { + /* If process env CI is set to false */ + webServer: process.env.CI ? undefined :{ command: 'npm run dev', url: 'https://localhost:3000', ignoreHTTPSErrors: true,