nx tests with node's native built-in test runner #29587
Unanswered
davidfiala
asked this question in
Questions
Replies: 1 comment
-
Wrote one for myself, just converted and expanded it and made it public https://www.npmjs.com/package/@simonegianni/nx-nodejs-test-runner .. still working on it but feel free to try and let me know. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a direct path forward to using node's builtin native test-runner with NX with typescript rather than jest?
The node v23.x series has gotten considerably better and worth considering for developers wanting to minimize their ts-jest configurations and mental overhead.
node --enable-source-maps --import tsx --test './src/**/*.test.ts
for non-nx projects works great, and it made me wonder: can I simplify my NX projects and strip out jest/ts-jest easily? Would I basically just need to copy the rules that @nx/jest sets up and add them my own plugin?Is there any interest/roadmap from within NX to add native node test runners? I can imagine with all the hype around deno, bun, etc, that it would be understandable if people didn't want to invest in a runtime-specific test integration.
Beta Was this translation helpful? Give feedback.
All reactions