-
Notifications
You must be signed in to change notification settings - Fork 672
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
[BUG] moment-loader fails to find default export #2500
Comments
Hi @awilkins, likely it's related to |
Here's a repo that demonstrates the bug : https://github.com/awilkins/testcafe-bug-2500 Running this produces a similar stack trace to above.
|
Hi @awilkins Thank you for the example to reproduce. I've reproduced the bug. |
Working on it. Looks like that jest prevents module caching: jestjs/jest#4940, we can work around it. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests. For TestCafe API, usage and configuration inquiries, we recommend asking them on StackOverflow. |
What is the current behavior?
Attempting to
Get the stack trace below. I would suspect it's something to do with ...
What is the expected behavior?
Code works
Note that line error reported on is nothing to do with bug - project has a .babelrc, and these tests are being run from inside Jest, rather than from Testcafe - but they import modules that import Testcafe types. Line reported is somewhere in transpiled output.
Workaround
Use testcafe version 0.20.2 which doesn't have
moment-loader.js
Specify your
.babelrc file
The text was updated successfully, but these errors were encountered: