File tree 3 files changed +15
-2
lines changed
3 files changed +15
-2
lines changed Original file line number Diff line number Diff line change 7
7
"build" : " next build" ,
8
8
"start" : " next start" ,
9
9
"lint" : " next lint" ,
10
+ "serve" : " npx http-server --port 5432 out" ,
10
11
"test" : " npx playwright test" ,
11
- "test:prod " : " npm run build && concurrently 'npx http-server --silent --port 5432 out' ' npm run test' --kill-others -s first " ,
12
+ "test:ci " : " CI=true npm run test" ,
12
13
"test:watch" : " chokidar '**/*.spec.ts' '**/*.page.tsx' -c 'test_file_path=$(echo {path} | sed s/page.tsx/spec.ts/) && npm run test -- --retries=0 ${test_file_path}'"
13
14
},
14
15
"dependencies" : {
22
23
"@types/react" : " ^18" ,
23
24
"@types/react-dom" : " ^18" ,
24
25
"chokidar-cli" : " ^3.0.0" ,
25
- "concurrently" : " ^8.2.2" ,
26
26
"typescript" : " ^5"
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -31,6 +31,16 @@ export default defineConfig({
31
31
trace : "on-first-retry" ,
32
32
} ,
33
33
34
+ // on CI, run the static server to serve the built app
35
+ webServer : process . env . CI
36
+ ? {
37
+ command : "npm run serve" ,
38
+ url : "http://localhost:5432" ,
39
+ reuseExistingServer : true ,
40
+ timeout : 120 * 1000 ,
41
+ }
42
+ : undefined ,
43
+
34
44
/* Configure projects for major browsers */
35
45
projects : [
36
46
{
Original file line number Diff line number Diff line change
1
+ export default function App ( ) {
2
+ return < div > Index page</ div > ;
3
+ }
You can’t perform that action at this time.
0 commit comments