mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 21:49:25 +08:00
fix(cli): nocobase test command --db-clean option is invalid
This commit is contained in:
parent
80a685f8bf
commit
e031e2e6c1
@ -14,7 +14,15 @@ module.exports = (cli) => {
|
|||||||
nodeCheck();
|
nodeCheck();
|
||||||
if (options.dbClean) {
|
if (options.dbClean) {
|
||||||
promptForTs();
|
promptForTs();
|
||||||
await runAppCommand('db:clean', '-y');
|
await runAppCommand('db:clean', ['-y']);
|
||||||
|
}
|
||||||
|
let index = process.argv.indexOf('-c');
|
||||||
|
if (index > 0) {
|
||||||
|
process.argv.splice(index, 1);
|
||||||
|
}
|
||||||
|
index = process.argv.indexOf('--db-clean');
|
||||||
|
if (index > 0) {
|
||||||
|
process.argv.splice(index, 1);
|
||||||
}
|
}
|
||||||
process.argv.splice(2, 1, '-i');
|
process.argv.splice(2, 1, '-i');
|
||||||
require('jest-cli/bin/jest');
|
require('jest-cli/bin/jest');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user