fix: test server not starting properly
This commit is contained in:
parent
d715961fc4
commit
711058fcde
5 changed files with 2 additions and 9 deletions
|
@ -7,7 +7,6 @@
|
||||||
"dev:headless": "next dev",
|
"dev:headless": "next dev",
|
||||||
"build": "next build",
|
"build": "next build",
|
||||||
"postbuild": "next-sitemap",
|
"postbuild": "next-sitemap",
|
||||||
"serve": "serve build --listen 3000",
|
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"test:e2e": "playwright test",
|
"test:e2e": "playwright test",
|
||||||
"clean": "rm -rf .next .turbo build node_modules test-results"
|
"clean": "rm -rf .next .turbo build node_modules test-results"
|
||||||
|
@ -49,7 +48,6 @@
|
||||||
"react": "^18.3.1",
|
"react": "^18.3.1",
|
||||||
"react-collapse": "^5.1.1",
|
"react-collapse": "^5.1.1",
|
||||||
"react-dom": "^18.3.1",
|
"react-dom": "^18.3.1",
|
||||||
"serve": "^14.2.0",
|
|
||||||
"tailwindcss": "^3.4.0",
|
"tailwindcss": "^3.4.0",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"zustand": "^4.5.2"
|
"zustand": "^4.5.2"
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite dev",
|
"dev": "vite dev",
|
||||||
|
"dev:headless": "vite dev --no-open",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"serve": "serve build --listen 5173",
|
|
||||||
"test:unit": "TZ=UTC jest",
|
"test:unit": "TZ=UTC jest",
|
||||||
"test:e2e": "playwright test",
|
"test:e2e": "playwright test",
|
||||||
"clean": "rm -rf .turbo .svelte-kit build node_modules vite.config.ts.timestamp-*",
|
"clean": "rm -rf .turbo .svelte-kit build node_modules vite.config.ts.timestamp-*",
|
||||||
|
@ -39,7 +39,6 @@
|
||||||
"prettier-plugin-svelte": "^3.2.3",
|
"prettier-plugin-svelte": "^3.2.3",
|
||||||
"prettier-plugin-tailwindcss": "^0.5.9",
|
"prettier-plugin-tailwindcss": "^0.5.9",
|
||||||
"sass": "^1.75.0",
|
"sass": "^1.75.0",
|
||||||
"serve": "^14.2.0",
|
|
||||||
"svelte": "^4.2.15",
|
"svelte": "^4.2.15",
|
||||||
"svelte-check": "^3.7.0",
|
"svelte-check": "^3.7.0",
|
||||||
"tailwindcss": "^3.4.0",
|
"tailwindcss": "^3.4.0",
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "turbo run dev --parallel --continue",
|
"dev": "turbo run dev --parallel --continue",
|
||||||
"build": "turbo run build",
|
"build": "turbo run build",
|
||||||
"serve": "turbo run serve",
|
|
||||||
"test:unit": "turbo run test:unit --parallel --continue",
|
"test:unit": "turbo run test:unit --parallel --continue",
|
||||||
"test:e2e": "turbo run test:e2e --parallel --continue",
|
"test:e2e": "turbo run test:e2e --parallel --continue",
|
||||||
"lint": "turbo run lint",
|
"lint": "turbo run lint",
|
||||||
|
|
|
@ -20,7 +20,7 @@ export function createConfig(config: Config): PlaywrightTestConfig {
|
||||||
// Run your local dev server before starting the tests:
|
// Run your local dev server before starting the tests:
|
||||||
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
|
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
|
||||||
webServer: {
|
webServer: {
|
||||||
command: "pnpm serve",
|
command: "pnpm dev:headless",
|
||||||
url: baseURL,
|
url: baseURL,
|
||||||
timeout: 30 * 1000,
|
timeout: 30 * 1000,
|
||||||
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
// eslint-disable-next-line turbo/no-undeclared-env-vars
|
||||||
|
|
|
@ -8,9 +8,6 @@
|
||||||
"cache": false,
|
"cache": false,
|
||||||
"dependsOn": ["^build"]
|
"dependsOn": ["^build"]
|
||||||
},
|
},
|
||||||
"serve": {
|
|
||||||
"cache": false
|
|
||||||
},
|
|
||||||
"test:unit": {
|
"test:unit": {
|
||||||
"cache": false
|
"cache": false
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue