Fix test-new-tests args parsing (#67308)
Noticed we weren't detecting test mode correctly due to incorrect args parsing so this fixes that x-ref: https://github.com/vercel/next.js/actions/runs/9725297814/job/26842454638?pr=67306#step:28:69
This commit is contained in:
parent
cf71687d69
commit
2fceb5b1aa
1 changed files with 2 additions and 2 deletions
|
@ -6,10 +6,10 @@ import yargs from 'yargs'
|
|||
|
||||
async function main() {
|
||||
let argv = await yargs(process.argv.slice(2))
|
||||
.boolean('--dev-mode')
|
||||
.boolean('dev-mode')
|
||||
.string('group').argv
|
||||
|
||||
let testMode = argv['--dev-mode'] ? 'dev' : 'start'
|
||||
let testMode = argv.devMode ? 'dev' : 'start'
|
||||
const rawGroup = argv['group']
|
||||
let currentGroup = 1
|
||||
let groupTotal = 1
|
||||
|
|
Loading…
Reference in a new issue