You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to include Stryker into a project that uses Jest, but I'm running up against problems with even the simplest of projects. To demonstrate this, I have created a dead-simple node project that uses Jest and generates the following issue:
11:12:27 (16352) INFO ConfigReader Using stryker.conf.js in the current working directory.
11:12:28 (16352) WARN InputFileResolver No files marked to be mutated, Stryker will perform a dry-run without actually mutating anything. You can configure the `mutate` property in your stryker.conf.js file (or use `--mutate` via command line).
11:12:28 (16352) INFO InitialTestExecutor Starting initial test run. This may take a while.
11:12:31 (16352) WARN Sandbox Could not symlink "/Users/dev/stryker-test/node_modules"in sandbox directory, it is already created in the sandbox. Please remove the node_modules from your sandbox files. Alternatively, set`symlinkNodeModules` to `false` to disable this warning.
11:12:36 (16352) ERROR InitialTestExecutor One or more tests resulted in an error:
Test runner crashed. Tried twice to restart it without any luck. Last time the error message was: Error: TypeError: Cannot read property 'runCLI' of undefined
TypeError: Cannot read property 'runCLI' of undefined
at JestPromiseTestAdapter.run (/Users/dev/stryker-test/node_modules/@stryker-mutator/jest-runner/src/jestTestAdapters/JestPromiseTestAdapter.js:17:31)
at JestTestRunner.run (/Users/dev/stryker-test/node_modules/@stryker-mutator/jest-runner/src/JestTestRunner.js:43:56)
at ChildProcessTestRunnerWorker.run (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/test-runner/ChildProcessTestRunnerWorker.js:24:56)
at ChildProcessProxyWorker.doCall (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:75:56)
at resolve (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:46:53)
at new Promise (<anonymous>)
at ChildProcessProxyWorker.handleMessage (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:46:17)
at process.emit (events.js:198:13)
at emit (internal/child_process.js:832:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
Error: TypeError: Cannot read property 'runCLI' of undefined
TypeError: Cannot read property 'runCLI' of undefined
at JestPromiseTestAdapter.run (/Users/dev/stryker-test/node_modules/@stryker-mutator/jest-runner/src/jestTestAdapters/JestPromiseTestAdapter.js:17:31)
at JestTestRunner.run (/Users/dev/stryker-test/node_modules/@stryker-mutator/jest-runner/src/JestTestRunner.js:43:56)
at ChildProcessTestRunnerWorker.run (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/test-runner/ChildProcessTestRunnerWorker.js:24:56)
at ChildProcessProxyWorker.doCall (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:75:56)
at resolve (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:46:53)
at new Promise (<anonymous>)
at ChildProcessProxyWorker.handleMessage (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxyWorker.js:46:17)
at process.emit (events.js:198:13)
at emit (internal/child_process.js:832:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
at ChildProcess.worker.on (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/child-proxy/ChildProcessProxy.js:133:68)
at ChildProcess.emit (events.js:198:13)
at emit (internal/child_process.js:832:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
11:12:36 (16352) ERROR StrykerCli an error occurred Error: Something went wrong in the initial test run
at InitialTestExecutor.validateResult (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/process/InitialTestExecutor.js:86:15)
at InitialTestExecutor.run (/Users/dev/stryker-test/node_modules/@stryker-mutator/core/src/process/InitialTestExecutor.js:41:14)
at process._tickCallback (internal/process/next_tick.js:68:7)
11:12:36 (16352) INFO StrykerCli Trouble figuring out what went wrong? Try `npx stryker run --fileLogLevel trace --logLevel debug` to get some more info.
Summary
I am trying to include Stryker into a project that uses Jest, but I'm running up against problems with even the simplest of projects. To demonstrate this, I have created a dead-simple node project that uses Jest and generates the following issue:
Stryker config
Test runner config
None
Stryker environment
Test runner environment
npm test
Your Environment
Add stryker.log
stryker.log
The text was updated successfully, but these errors were encountered: