Skip to content

Migrate workspace Jest targets to @nx/jest/plugin inference and fix config loading warnings #213

Description

@tbinna

Problem

Nx 23 warns that the @nx/jest:jest executor is deprecated and will be removed in Nx 24. The workspace still declares explicit Jest executor targets for nx-forge and docs-tools.

On current Node LTS, Jest also warns that both workspace jest.config.ts files fail to load as ES modules. The tests pass today, but the warnings obscure real failures and signal configuration that needs to be made explicit.

This work is intentionally separate from PR #210.

Scope

  • Configure @nx/jest/plugin inference for the workspace.
  • Convert the existing nx-forge and docs-tools test targets.
  • Make the two workspace Jest config module formats explicit and compatible with current Node LTS on Linux and Windows.
  • Preserve the existing workspace test behavior, transforms, coverage outputs, and Nx caching.

Out of scope

  • Changes to the @toolsplus/nx-forge application generator or other published plugin behavior. Generator inference will be revisited when the corresponding upstream Nx implementation changes.

Acceptance criteria

  • Resolved workspace configuration no longer uses @nx/jest:jest.
  • The nx-forge and docs-tools test targets remain available with equivalent behavior.
  • Both workspace Jest configs load without Node module-format warnings on Ubuntu and Windows.
  • Existing workspace test environments, transforms, coverage outputs, and Nx caching retain their current behavior.
  • Tests validate the inferred workspace behavior without globally suppressing warnings.
  • Relevant workspace build, unit, and CI checks pass.

References

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions