w: remove useless jest

This commit is contained in:
undefined committed 2021-08-03 20:37:35 +08:00
1 parent 7006457001
commit b0e7512d7a
7 files changed
+4 -69

No files matched your search

-24
View File
@@ -1,24 +0,0 @@
/* eslint-disable import/no-extraneous-dependencies */
const spawn = require('cross-spawn');
const args = ['jest', '--coverage'];
const [, , argv2, argv3] = process.argv;
if (argv2 && !argv2.startsWith('-')) {
args.push(argv2);
if (argv3 && !argv3.startsWith('-')) {
args.push('--collectCoverageFrom');
if (argv3.endsWith('.ts')) {
args.push(`**/${argv3}`);
} else {
args.push(`**/${argv3}/**/*.ts`);
}
args.push(...process.argv.slice(4));
} else {
args.push(...process.argv.slice(3));
}
} else {
args.push('packages/.+\\.spec\\.ts', ...process.argv.slice(2));
}
spawn('npx', args, { stdio: 'inherit' });