try to add e2e job

This commit is contained in:
Ildar Kamalov
2025-01-31 15:37:49 +03:00
parent 7f85a04257
commit 236708f2e4
4 changed files with 29 additions and 2 deletions

2
client/package.json vendored
View File

@@ -10,7 +10,7 @@
"lint": "echo 'Lint temporarily disabled'",
"lint-new": "eslint './src/**/*.(ts|tsx)'",
"lint:fix": "eslint './src/**/*.(ts|tsx)' --fix",
"test": "vitest --run && npx playwright test",
"test": "vitest --run",
"test:watch": "vitest --watch",
"test:e2e": "npx playwright test tests/e2e",
"test:e2e:interactive": "npx playwright test --ui",

View File

@@ -69,7 +69,9 @@ export default defineConfig({
],
webServer: {
command: 'rm -f AdGuardHome.yaml && sudo ./AdGuardHome --local-frontend -v',
command: process.env.CI
? 'rm -f AdGuardHome.yaml && ./AdGuardHome --local-frontend -v'
: 'rm -f AdGuardHome.yaml && sudo ./AdGuardHome --local-frontend -v',
url: 'http://127.0.0.1:3000',
cwd: '..',
reuseExistingServer: !process.env.CI,