-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Allow Async Transforms #2711
Comments
This is not possible, Jest transforms when a module is being required (like "require('Foo')") which has to be synchronous. |
I have encountered this use case. Basically the test file needs to be compiled as it's written in coffeescript and using google closure library to require/provide dependencies. I managed to use transform with coffee module to compile the source code to javascript, but cannot use webpack to deal with google closure library as the compilation is asynchronous. I need to either find a sync way to compile webpack, or to find a async way to transform the file. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'd like to suggest a feature:
Currently, transform scripts (through the
transform
configuration) must be synchronous. However, there are some transformers out there that must run asynchronously that I'd like to use in my transform scripts, but until Jest supports asynchronous transforms, this isn't possible.The text was updated successfully, but these errors were encountered: