-
Notifications
You must be signed in to change notification settings - Fork 173
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
[v5] jest fails to run #96
Comments
Thanks for trying out the alpha! This is really great to note, and it may be that the ecosystem isn't actually ready for es modules. I wasn't aware that jest itself even attempted to parse dependencies (that's quite surprising behavior for something that I thought was a simple test runner). Would you mind telling me a bit more about your setup here? Are you compiling your code through TS or babel, or packaging them up in some way with webpack or an equivalent? Also, what version of node is being run here? Thanks again for the rapid help testing these changes in real-world applications! |
sure, im on node14 and its a plain olde express app my jest config is like so:
my ts is compliled inside my docker container:
1st ts config
2nd ts config
(theres two of them because: https://docs.sentry.io/platforms/node/typescript/#sentry-sdk-and-source-maps-with-typescript) no webpack or babel as far as i know, just the ts compiler. |
it doesn't parse anything in |
just bumped myself to node16, same result |
Jest executes all code in a Best solution for Jest here is to ship a CJS implementation (in addition to the ESM one) referenced in (note that Jest does not support this field yet, which is why |
#114 should fix |
I just published |
I've just bumped my code to v5 as I'm currently experiencing the #65 bug often. My tests dont run however (detail below). I'm guessing this is because the current build
target
andmodule
ts settings are super modern.Could they be downgraded to
"target":"es5"
and"module": "commonjs"
?ps congrats on the first v5 alpha!
The text was updated successfully, but these errors were encountered: