stryker-js icon indicating copy to clipboard operation
stryker-js copied to clipboard

Doesn't work with jest.config.ts

Open saiichihashimoto opened this issue 2 years ago • 2 comments

Everything works perfectly with jest.config.js, however, changing it to jest.config.ts (and making sure the jest.configFile points to the typescript file. Doesn't work.

saiichihashimoto avatar Apr 02 '22 00:04 saiichihashimoto

I had a similar issue and what I did to solve it was to use the jest.config (with require) instead of jest.configFile and replaced export default with module.exports = in the jest.config file

ricardani avatar Apr 07 '22 10:04 ricardani

Ah yes, should be an easy fix. We're happy to accept a PR for this

nicojs avatar Apr 13 '22 20:04 nicojs

Fixed with #3761

nicojs avatar Oct 29 '22 21:10 nicojs

Released in v6.3 🎉. Just a heads-up, the @stryker-mutator/jest-runner plugin only supports jest.config.ts files when you install jest@>=29.2

nicojs avatar Oct 31 '22 07:10 nicojs