nx tests with node's native built-in test runner #29587
Unanswered
davidfiala
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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