fix: test server not starting properly

This commit is contained in:
Kim, Jimin 2024-04-28 00:56:47 +09:00
parent d715961fc4
commit 711058fcde
Signed by: pomp
GPG key ID: 2B516173EDD492EB
5 changed files with 2 additions and 9 deletions

View file

@ -7,7 +7,6 @@
"dev:headless": "next dev",
"build": "next build",
"postbuild": "next-sitemap",
"serve": "serve build --listen 3000",
"lint": "next lint",
"test:e2e": "playwright test",
"clean": "rm -rf .next .turbo build node_modules test-results"
@ -49,7 +48,6 @@
"react": "^18.3.1",
"react-collapse": "^5.1.1",
"react-dom": "^18.3.1",
"serve": "^14.2.0",
"tailwindcss": "^3.4.0",
"typescript": "^5.3.3",
"zustand": "^4.5.2"

View file

@ -5,8 +5,8 @@
"private": true,
"scripts": {
"dev": "vite dev",
"dev:headless": "vite dev --no-open",
"build": "vite build",
"serve": "serve build --listen 5173",
"test:unit": "TZ=UTC jest",
"test:e2e": "playwright test",
"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-tailwindcss": "^0.5.9",
"sass": "^1.75.0",
"serve": "^14.2.0",
"svelte": "^4.2.15",
"svelte-check": "^3.7.0",
"tailwindcss": "^3.4.0",

View file

@ -3,7 +3,6 @@
"scripts": {
"dev": "turbo run dev --parallel --continue",
"build": "turbo run build",
"serve": "turbo run serve",
"test:unit": "turbo run test:unit --parallel --continue",
"test:e2e": "turbo run test:e2e --parallel --continue",
"lint": "turbo run lint",

View file

@ -20,7 +20,7 @@ export function createConfig(config: Config): PlaywrightTestConfig {
// Run your local dev server before starting the tests:
// https://playwright.dev/docs/test-advanced#launching-a-development-web-server-during-the-tests
webServer: {
command: "pnpm serve",
command: "pnpm dev:headless",
url: baseURL,
timeout: 30 * 1000,
// eslint-disable-next-line turbo/no-undeclared-env-vars

View file

@ -8,9 +8,6 @@
"cache": false,
"dependsOn": ["^build"]
},
"serve": {
"cache": false
},
"test:unit": {
"cache": false
},