Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work with jest.config.ts #3476

Closed
saiichihashimoto opened this issue Apr 2, 2022 · 4 comments · Fixed by #3761
Closed

Doesn't work with jest.config.ts #3476

saiichihashimoto opened this issue Apr 2, 2022 · 4 comments · Fixed by #3761
Labels
🐛 Bug Something isn't working 👶 Good first issue Good for newcomers

Comments

@saiichihashimoto
Copy link

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 saiichihashimoto added the 🐛 Bug Something isn't working label Apr 2, 2022
@ricardani
Copy link

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

@nicojs
Copy link
Member

nicojs commented Apr 13, 2022

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

@nicojs
Copy link
Member

nicojs commented Oct 29, 2022

Fixed with #3761

@nicojs nicojs closed this as completed Oct 29, 2022
@nicojs
Copy link
Member

nicojs commented Oct 31, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working 👶 Good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants