-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
fix dependency name clash bug #6687
Conversation
most likely i can fix it by moving |
In general it would be awesome if we could require everything jest needs outside of the VM anyways, isn't it? |
@SimenB yeah, ideally we should do this. in this case there's a global state that snapshots have (serializers and might be more) and it has to be required from within the VM. There shouldn't be anything that prevents us from changing that and just passing an instance of the state down to the VM |
06dbac2
to
e621813
Compare
added the fix |
New test fails on appveyor, not really sure why... It's complaining about invalid json in babelrc. This should also have a changelog entry |
e621813
to
56296b8
Compare
Codecov Report
@@ Coverage Diff @@
## master #6687 +/- ##
==========================================
- Coverage 63.71% 63.55% -0.16%
==========================================
Files 235 235
Lines 8998 8997 -1
Branches 4 4
==========================================
- Hits 5733 5718 -15
- Misses 3264 3278 +14
Partials 1 1
Continue to review full report at Codecov.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
to fix the bug i moved
prettier
andbabel-traverse
outside of node VM, so it is only required once per worker (and not in each individual test).by doing this we'll also avoid taking the source code of our these dependencies through our resolution/transformation pipeline, which solves the issue of conflicting module names (since babel is no longer required from within the test code any more)
old description: