You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
Jest runs its code in its own unique vm context (different than the default vm context) so I can simulate this with the global at least by detecting that the context is different and running it in a similar one.
just for reference, I don't think the versions matter:
esm: v3.0.55
jest: v23.2.0
node: v10.5.0
I forked a project and converted the code incl. tests from ava to use esm and jest.
it seems that the "global" process object, and/or the process.env object is being cloned - or re-created? I haven't debugged it yet.
some tests are setting the "global" env variable prior running the test functions. if run without esm, it works, running with esm, fails.
not quite sure if this is a bug with jest or esm, or just intended behavior.
might be best explained with some code: https://github.com/dnalborczyk/esm-jest-repro
The text was updated successfully, but these errors were encountered: