We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
scripts/test.mjs
jest
1 parent 23fb4a9 commit 1cd4a7aCopy full SHA for 1cd4a7a
scripts/test.mjs
@@ -13,7 +13,8 @@ const projectPath = path.dirname(
13
const platform = os.platform();
14
15
/* eslint-disable no-console */
16
-async function main() {
+async function main(argv = process.argv) {
17
+ argv = argv.slice(2);
18
const tscArgs = [`-p`, path.join(projectPath, 'tsconfig.build.json')];
19
console.error('Running tsc:');
20
console.error(['tsc', ...tscArgs].join(' '));
@@ -23,7 +24,7 @@ async function main() {
23
24
encoding: 'utf-8',
25
shell: platform === 'win32' ? true : false,
26
});
- const jestArgs = [];
27
+ const jestArgs = [...argv];
28
console.error('Running jest:');
29
console.error(['jest', ...jestArgs].join(' '));
30
childProcess.execFileSync('jest', jestArgs, {
0 commit comments