feat(cli): add test clearCache option

This commit is contained in:
陈嘉涵
2019-12-13 14:13:51 +08:00
parent b7992d3d2c
commit 40992bccfd
3 changed files with 10 additions and 28 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ export function test(command: any) {
const config = {
rootDir: ROOT,
watch: command.watch,
config: JEST_CONFIG_FILE
config: JEST_CONFIG_FILE,
clearCache: command.clearCache
} as any;
runCLI(config, [ROOT]);
+1
View File
@@ -31,6 +31,7 @@ command('commit-lint').action(commitLint);
command('test')
.option('--watch')
.option('--clearCache')
.action(test);
parse(process.argv);