|
16 | 16 | "description": "Select the next command", |
17 | 17 | "options": ["dev", "build", "start"], |
18 | 18 | "default": "dev" |
| 19 | + }, |
| 20 | + { |
| 21 | + "id": "nextTestMode", |
| 22 | + "type": "pickString", |
| 23 | + "description": "Select the next test mode", |
| 24 | + "options": ["dev", "start"], |
| 25 | + "default": "dev" |
19 | 26 | } |
20 | 27 | ], |
21 | 28 | "configurations": [ |
|
198 | 205 | "NEXT_TELEMETRY_DISABLED": "1" |
199 | 206 | } |
200 | 207 | }, |
| 208 | + { |
| 209 | + "name": "Run e2e test", |
| 210 | + "type": "node", |
| 211 | + "request": "launch", |
| 212 | + "cwd": "${workspaceFolder}", |
| 213 | + "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/jest", |
| 214 | + "runtimeArgs": ["--runInBand", "--verbose", "${file}"], |
| 215 | + "console": "integratedTerminal", |
| 216 | + "skipFiles": ["<node_internals>/**"], |
| 217 | + "sourceMapPathOverrides": { |
| 218 | + "webpack://_N_E/[.]/(app|pages)/(.*)": "${workspaceFolder}/${fileDirname}/$1/$2", |
| 219 | + "webpack://_N_E/[.]/(.*)": "${workspaceFolder}/${fileDirname}/.next/server/$1", |
| 220 | + "webpack://_N_E/(?:../)*src/(.*)": "${workspaceFolder}/packages/next/src/$1", |
| 221 | + "webpack://next/./dist/src/*": "${workspaceFolder}/packages/next/src/*" |
| 222 | + }, |
| 223 | + "env": { |
| 224 | + "HEADLESS": "true", |
| 225 | + "NEXT_E2E_TEST_TIMEOUT": "1000000", |
| 226 | + "NEXT_SKIP_ISOLATE": "1", |
| 227 | + "NEXT_TEST_MODE": "${input:nextTestMode}" |
| 228 | + } |
| 229 | + }, |
201 | 230 | { |
202 | 231 | "name": "Launch app build trace jaeger", |
203 | 232 | "type": "node", |
|
0 commit comments