Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fc1ba0a

Browse files
vsavkinFrozenPandaz
authored andcommittedAug 18, 2020
fix(repo): fix unit test script
1 parent 1804b55 commit fc1ba0a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed
 

Diff for: ‎scripts/patched-jest-resolver.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ function getCompilerSetup(rootDir) {
2525
}
2626
let compilerSetup;
2727

28-
const command = process.argv[3].split(':')[1];
29-
if (command === 'test') {
30-
// this is needed so tests don't create nxdeps.josn in the dist folder
28+
if (
29+
process.argv[1].indexOf('jest-worker') > -1 ||
30+
(process.argv.length >= 4 && process.argv[3].split(':')[1] === 'test')
31+
) {
3132
process.env.NX_WORKSPACE_ROOT_PATH = path_1.join(
3233
__dirname,
3334
'..',

0 commit comments

Comments
 (0)
Please sign in to comment.