Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

Commit

Permalink
Jest process detection uses OS path separator
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamdyson committed Aug 1, 2019
1 parent 950b66c commit 643cec6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion isJestProcessFromArguments.js
Expand Up @@ -3,6 +3,8 @@ Licensed under the MIT license. See LICENSE file in the repository root for full

/* istanbul ignore file: test would be a mirror of implementation */

const path = require("path");

module.exports =
argumentsOfProcess => isSecondArgumentJest(argumentsOfProcess[1]);

Expand All @@ -14,6 +16,6 @@ function isSecondArgumentJest(
||
argument.endsWith("jest.js")
||
argument.endsWith("jest-worker/build/child.js")
argument.endsWith(path.join("jest-worker", "build", "child.js"))
);
}
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -64,5 +64,5 @@
"spellcheck": "find -type f \\( -name \"*.js\" -or -name \"*.md\" \\) ! -path \"./dist/*\" ! -path \"./dist/**/*\" ! -path \"./node_modules/**/*\" ! -path \"./test-coverage/**/*\" -exec npx cspell {} +",
"test": "npx jest --runInBand"
},
"version": "1.5.1"
"version": "1.5.2"
}

0 comments on commit 643cec6

Please sign in to comment.