mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(cli): should exit process when test failed
This commit is contained in:
parent
46a7aefc65
commit
87260de98a
@ -17,5 +17,17 @@ export function test(command: any) {
|
||||
clearCache: command.clearCache
|
||||
} as any;
|
||||
|
||||
runCLI(config, [ROOT]);
|
||||
runCLI(config, [ROOT])
|
||||
.then(response => {
|
||||
if (!response.results.success && !command.watch) {
|
||||
process.exit(1);
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err);
|
||||
|
||||
if (!command.watch) {
|
||||
process.exit(1);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user