File tree Expand file tree Collapse file tree 4 files changed +24
-4
lines changed
dev-packages/e2e-tests/test-applications Expand file tree Collapse file tree 4 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 8
8
"clean" : " npx rimraf node_modules pnpm-lock.yaml" ,
9
9
"test:prod" : " TEST_ENV=production playwright test" ,
10
10
"test:dev" : " TEST_ENV=development playwright test" ,
11
+ "test:dev-webpack" : " TEST_ENV=development-webpack playwright test" ,
11
12
"test:build" : " pnpm install && pnpm build" ,
12
13
"test:test-build" : " pnpm ts-node --script-mode assert-build.ts" ,
13
14
"test:build-canary" : " pnpm install && pnpm add next@canary && pnpm add react@latest && pnpm add react-dom@latest && pnpm build:webpack" ,
44
45
"optionalVariants" : [
45
46
{
46
47
"build-command" : " pnpm test:build-canary" ,
47
- "label" : " nextjs-app-dir (canary, webpack opt-in)"
48
+ "label" : " nextjs-app-dir (canary, webpack opt-in)" ,
49
+ "assert-command" : " pnpm test:prod && pnpm test:dev-webpack"
48
50
},
49
51
{
50
52
"build-command" : " pnpm test:build-latest" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,16 @@ if (!testEnv) {
5
5
throw new Error ( 'No test env defined' ) ;
6
6
}
7
7
8
+ const getStartCommand = ( ) => {
9
+ if ( testEnv === 'development-webpack' ) {
10
+ return 'pnpm next dev -p 3030 --webpack' ;
11
+ }
12
+
13
+ return testEnv === 'development' ? 'pnpm next dev -p 3030' : 'pnpm next start -p 3030' ;
14
+ } ;
15
+
8
16
const config = getPlaywrightConfig ( {
9
- startCommand : testEnv === 'development' ? 'pnpm next dev -p 3030' : 'pnpm next start -p 3030' ,
17
+ startCommand : getStartCommand ( ) ,
10
18
port : 3030 ,
11
19
} ) ;
12
20
Original file line number Diff line number Diff line change 8
8
"clean" : " npx rimraf node_modules pnpm-lock.yaml" ,
9
9
"test:prod" : " TEST_ENV=production playwright test" ,
10
10
"test:dev" : " TEST_ENV=development playwright test" ,
11
+ "test:dev-webpack" : " TEST_ENV=development-webpack playwright test" ,
11
12
"test:build" : " pnpm install && pnpm build" ,
12
13
"test:test-build" : " pnpm ts-node --script-mode assert-build.ts" ,
13
14
"test:build-canary" : " pnpm install && pnpm add next@canary && pnpm add react@latest && pnpm add react-dom@latest && pnpm build:webpack" ,
44
45
"optionalVariants" : [
45
46
{
46
47
"build-command" : " pnpm test:build-canary" ,
47
- "label" : " nextjs-pages-dir (canary, webpack opt-in)"
48
+ "label" : " nextjs-pages-dir (canary, webpack opt-in)" ,
49
+ "assert-command" : " pnpm test:prod && pnpm test:dev-webpack"
48
50
},
49
51
{
50
52
"build-command" : " pnpm test:build-latest" ,
Original file line number Diff line number Diff line change @@ -5,8 +5,16 @@ if (!testEnv) {
5
5
throw new Error ( 'No test env defined' ) ;
6
6
}
7
7
8
+ const getStartCommand = ( ) => {
9
+ if ( testEnv === 'development-webpack' ) {
10
+ return 'pnpm next dev -p 3030 --webpack' ;
11
+ }
12
+
13
+ return testEnv === 'development' ? 'pnpm next dev -p 3030' : 'pnpm next start -p 3030' ;
14
+ } ;
15
+
8
16
const config = getPlaywrightConfig ( {
9
- startCommand : testEnv === 'development' ? 'pnpm next dev -p 3030' : 'pnpm next start -p 3030' ,
17
+ startCommand : getStartCommand ( ) ,
10
18
port : 3030 ,
11
19
} ) ;
12
20
You can’t perform that action at this time.
0 commit comments