-
Notifications
You must be signed in to change notification settings - Fork 62
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
[ESM] Tests no longer work on windows or WSL #170
Comments
Hey @PythonCreator27, let's address this issue (esm testing on windows) separately and see if we can solve it. We can do the same with any other issues that crop up and then make a call on whether to revert or not. Tests are all passing on my system and on the CI, so I think Jest's ESM support is working ok, but obviously we want it to work on Windows too. Two things that came to mind:
And if still not, we'll see what we can figure out. |
Oh wait, I just re-read your message... you said you reverted your jest.config too... that will definitely fail. Let's see if any of the above helps on a clean devel clone (I fixed the |
I did run |
@gadicc After a little bit more of trying things out, I tried to add |
Hey @PythonCreator27, thanks (as usual!) for all your efforts here. The problem seems to be with the dynamic import, but only when running a lot of tests. As you point out, the number of failures vary with each run. I've been trying to simplify it down to a minimal reproduction to submit as an upstream issue, but no luck yet. In any event, just FYI, you can get the tests running by replacing the existing import fetchDevel_ from "./lib/fetchDevel.js";
function fetchDevel() {
return fetchDevel_;
} With that, everything passes except for just this 1 failure:
which we can look at separately. I'd like to try figure this out and submit upstream, but if we're impatient, we could pick a different way to conditionally include Unfortunately I have an overseas trip coming up next week so my time is a bit limited, but let's see how we go. |
Related to Jest issue #10944 and probably caused by Node issue #36351. Easier temporary fix, set # of workers to >= # of test suits, e.g. # node-yahoo-finance2 has 16 test suites
$ yarn test -w 16 |
@gadicc Tests running (after I add |
Ok great news! The main Even |
# [1.11.0](v1.10.4...v1.11.0) (2021-06-01) ### Bug Fixes * **deps:** update dependency ajv to ^8.1.0 ([1769641](1769641)) * **quoteCombine:** resolve `undefined` for missing symbols ([#150](#150)) ([f8c25e3](f8c25e3)) * **testing:** specify jest.js path, not bin ([#170](#170)) ([6772c8e](6772c8e)) ### Features * **options:** accept `date` option ([#186](#186)) ([11b8a72](11b8a72)) * add (friendly) warning when used in the browser ([3c4c5a0](3c4c5a0)), closes [#153](#153) * add insights module ([#169](#169)) ([4603232](4603232)) * **concurrency:** ability to limit max simultaneous requests ([#76](#76)) ([3424d44](3424d44)) * **modules:** build (true) esm, (interop) cjs modules; tests/readme ([#144](#144)) ([2182f6c](2182f6c)) * **setGlobalConfig:** add setGlobalConfig function ([#133](#133)) ([43ebaa4](43ebaa4))
Originally posted by @PythonCreator27 in #144 (comment)
The text was updated successfully, but these errors were encountered: