-
Notifications
You must be signed in to change notification settings - Fork 460
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
ts-jest does not support new Babel 7 Project-wide config file #933
Comments
Would love a PR for this, should be reasonably simple. |
I set the |
The way I've been working around this for now is by using the new jest.config.js format and inlining the babel.config.js via a require:
|
@liamjones 's solution is not working for me. This is my babel.config.js
|
Please release a new version |
Issue :
Babel 7’s Project-wide config file is named
babel.config.js
, implying it is a JavaScript file, but ts-jest usesjson5.parse(readFileSync(babelConfig.value, 'utf8'))
to parse the config. This results in an error, because our JavaScript configuration cannot be parsed as JSON.Expected behavior :
The JavaScript file would be able to be parsed as a babel project-wide configuration.
ts-jest
’s docs also suggest that JS files are acceptable.Debug log:
log file content
Minimal repo :
https://github.com/paulrehkugler/ts-jest-babel-7-project-wide-config-repro-repo
The text was updated successfully, but these errors were encountered: