feat(vant-cli): support jest options (#9039)
This commit is contained in:
@@ -30,6 +30,19 @@ command('test')
|
||||
'--clearCache',
|
||||
'Clears the configured Jest cache directory and then exits'
|
||||
)
|
||||
.option(
|
||||
'--changedSince <changedSince>',
|
||||
'Runs tests related to the changes since the provided branch or commit hash'
|
||||
)
|
||||
.option(
|
||||
'--logHeapUsage',
|
||||
'Logs the heap usage after every test. Useful to debug memory leaks'
|
||||
)
|
||||
.option(
|
||||
'--runInBand',
|
||||
'Run all tests serially in the current process, rather than creating a worker pool of child processes that run tests'
|
||||
)
|
||||
.option('--debug', 'Print debugging info about your Jest config')
|
||||
.action(test);
|
||||
|
||||
command('clean').description('Clean all dist files').action(clean);
|
||||
|
||||
Reference in New Issue
Block a user