Skip to content

Conversation

@Hotell
Copy link
Contributor

@Hotell Hotell commented Jan 15, 2026

This pull request updates the Node.js version used in all CI workflows to 22, modernizes and standardizes Jest config files for React test apps, and improves configuration file exclude patterns. It also includes change files for multiple packages documenting the removal of Jest config from excludes.

Key changes include:

CI and Workflow Updates:

  • Updated Node.js version from 20 to 22 in all GitHub Actions workflows (ci.yml, ci-change.yml, docs.yml) to ensure compatibility with the latest features and dependencies.

Jest Config Update:

  • migrated all jest configs from .ts to .mjs to avoid Node 22 native TypeScript support issues with @nx/jest executor

While Nx addressed this issue with various migrations nrwl/nx#33657, nrwl/nx#33401 none of them felt "right" / didnt worked with @nx/jest executor.

  • to maintain TS DX within jest configs while avoiding need to migrate to native jest runner instead the executor, the most "straightforward" way was to migrate to esm format

workspace plugin:

  • updates library generator to use our own template instead @nx/js one to accommodate our needs

Configuration Improvements:

  • Updated beachball.config.js to expand the exclude patterns for config files, including various Jest and ESLint config file extensions and adding tsconfig.spec.json to the exclude list.

@Hotell Hotell force-pushed the tools/bump-nx-node-22 branch from 64b111d to 35be927 Compare January 15, 2026 17:10
@Hotell Hotell changed the title Tools/bump nx node 22 chore: migrate to node 22, nx 22.3 and resolve node native support issues with jest configs Jan 15, 2026
… make it work with old @nx/jest executor with jest 30 and node 22+ which added native TypeScript support
… DX and make it work with old @nx/jest executor with jest 30 and node 22+ which added native TypeScript support
@Hotell Hotell changed the title chore: migrate to node 22, nx 22.3 and resolve node native support issues with jest configs chore: migrate to node 22, nx 22.3 and resolve node native support issues with jest configs and typescript Jan 15, 2026
@Hotell Hotell marked this pull request as ready for review January 15, 2026 18:12

export default async function (tree: Tree, options: LibraryGeneratorSchema) {
const { name, owner } = options;
const { name, owner, testEnvironment = 'jsdom' } = options;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is default option when invoked via nx g / explicitly normalizing the logic

Copy link
Collaborator

@hectorjjb hectorjjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good for gamepad navigation 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants