mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(vant-cli): support jest options (#9038)
This commit is contained in:
parent
485e313b37
commit
3fe9afb0ab
@ -15,6 +15,10 @@ export function test(command: any) {
|
||||
watch: command.watch,
|
||||
config: JEST_CONFIG_FILE,
|
||||
clearCache: command.clearCache,
|
||||
changedSince: command.changedSince,
|
||||
logHeapUsage: command.logHeapUsage,
|
||||
runInBand: command.runInBand,
|
||||
debug: command.debug,
|
||||
} as any;
|
||||
|
||||
runCLI(config, [ROOT])
|
||||
|
@ -37,6 +37,22 @@ 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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user