Open magwas opened 1 year ago
Hi @magwas, I tried your example and saw the warnings stryker outputs which contains the errors jest throws. The run does continue and finishes eventually. Jest throws does errors because a mutant breaks the logic in the app.
For example the highlighted mutant below on row 19 replaces the /
with an empty string. The path that's needs to be imported is now invalid an so it crashes the jest test runner. This crash is reported in the console and the mutant gets the status RuntimeError
.
Could you please try to wait a bit longer and see if stryker does continue with the warnings?
Summary
When multiple promises are awaited in a for loop, jest gives correct test result (making sure all of them ran), while stryker reports error with 'child process exited unexpectedly'
Stryker does work if I use
Promises.all()
, but I would expect it to work correctly if the initial test is green.The most minimal example I could reproduce the bug with is at https://github.com/kode-konveyor/cdd-ts/tree/bugreport/stryker_async
Stryker config
Test runner config Is in package.json
Stryker environment
Test runner environment
Your Environment
Add stryker.log
stryker.log