diff --git a/isJestProcessFromArguments.js b/isJestProcessFromArguments.js index b11cef0..8c88739 100644 --- a/isJestProcessFromArguments.js +++ b/isJestProcessFromArguments.js @@ -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]); @@ -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")) ); } \ No newline at end of file diff --git a/package.json b/package.json index 92a9641..a077b1b 100644 --- a/package.json +++ b/package.json @@ -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" }