-
Notifications
You must be signed in to change notification settings - Fork 61
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
Support for "esbuild-jest" #90
Comments
What would be required for this? |
Thank you for your reply! Fortunately, you do not need to do any additional code changes for this. I initially thought you would need to. I just needed to add this in a Jest config file (or "jest" property if you are storing your Jest config in package.json): {
"transform": {
"^.+\\.jsx?$": "esbuild-jest"
},
"transformIgnorePatterns": ["<rootDir>/node_modules/(?!(rescript|@glennsl/bs-jest)/)"]
} This will require "esbuild-jest" of course. When someone uses "package-specs": {
"module": "es6",
"in-source": true
} All res* and ml* files are transpiled into js (or mjs) in ES6 flavor. However, the compiled res/ml files in Shall I add something to the docs? |
Please take note that I have not done any test files involving React. I use it here: https://github.com/makoru-hikage/sasquare-reasonml (Please do not mind that misnomer on my personal project.) |
Thanks for the explanation!
Yes. Please do! As a sub-heading to the troubleshooting section, for example, or just referencing this issue if you're feeling lazy. |
Thank you! I shall write a sub-heading, submit a PR and close this upon merging. |
Closing this as resolved in #91 then. Thanks again! |
This is for projects using React which requires es6 builds. React projects typically uses ES6 builds.
The text was updated successfully, but these errors were encountered: