-
Notifications
You must be signed in to change notification settings - Fork 455
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
Add introduce about "useBabelrc" and ES import #270
Conversation
README.md
Outdated
``` | ||
|
||
Notice, by default `ts-jest` will not use project .babelrc, so `"useBabelrc": true` must be set. | ||
```json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there's no need to repeat this code snippet again. We can reference the main one here IMO.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's OK.
Just FYI, I added the second section because this problem seems only exist when using ts-jest. Without ts-jest the project's. babelrc will be used so as long as the project can be built the tests can be run. But when ts-jest is used, the tests will fail even the code can be built, and the error message just helps nothing. This may confuse newbies. And so sorry for my English skill, I should be more careful when writing documents since I'm not a native English speaker. |
The first section addresses this issue. The configuration details for Currently, anyone who wants to use a custom
We really appreciate all contributions so don't worry about this 😄. English isn't the first language for a lot of us so we understand! |
See #265