Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix(testing): enforce commonjs module for ts-jest #30681

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

Merged
merged 1 commit into from
Apr 11, 2025

Conversation

leosvelperez
Copy link
Member

@leosvelperez leosvelperez commented Apr 11, 2025

Current Behavior

The @nx/jest graph plugin and the @nx/jest:jest executor correctly force the moduleResolution: node10 to be used by ts-node (used by ts-jest), but don't force using module: commonjs, which can result in issues due to incompatible module/moduleResolution pair.

Expected Behavior

The @nx/jest graph plugin and the @nx/jest:jest executor should force the moduleResolution: node10 and module: commonjs compiler options to be used by ts-node.

Related Issue(s)

Fixes #

@leosvelperez leosvelperez self-assigned this Apr 11, 2025
Copy link

vercel bot commented Apr 11, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview Apr 11, 2025 1:34pm

Copy link

nx-cloud bot commented Apr 11, 2025

View your CI Pipeline Execution ↗ for commit 01be72e.

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-ci ✅ Succeeded 7m 46s View ↗
nx run-many -t check-imports check-commit check... ✅ Succeeded 22s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 1s View ↗
nx documentation ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-04-11 14:46:57 UTC

@leosvelperez leosvelperez force-pushed the js/fix-custom-conditions branch 2 times, most recently from 6ea3d13 to 4581b7e Compare April 11, 2025 12:19
@leosvelperez leosvelperez changed the title fix(js): wip fix(testing): enforce commonjs module for ts-jest Apr 11, 2025
@leosvelperez leosvelperez force-pushed the js/fix-custom-conditions branch from 4581b7e to edec8df Compare April 11, 2025 12:36
@leosvelperez leosvelperez marked this pull request as ready for review April 11, 2025 13:10
@leosvelperez leosvelperez requested review from a team as code owners April 11, 2025 13:10
@FrozenPandaz FrozenPandaz enabled auto-merge (squash) April 11, 2025 14:44
@FrozenPandaz FrozenPandaz merged commit 259561f into master Apr 11, 2025
12 checks passed
@FrozenPandaz FrozenPandaz deleted the js/fix-custom-conditions branch April 11, 2025 14:47
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.