Skip to content

Commit

Permalink
feat(testing): disable jest runtime by default when inferring targets (
Browse files Browse the repository at this point in the history
…#29917)

This PR updates `@nx/jest/plugin` such that `disableJestRuntime` option
is true by default. Users will need to set it to false to bring in
`jest-config` and `jest-runtime` to compute atomized targets. We're
leaving it as an option if anyone runs into discrepancies between our
calculation and what jest-runtime calculates for test files within a
project.



## Current Behavior
Jest runtime is used by default and is potentially slow if you use many
transforms, presets, etc. in the jest config.

## Expected Behavior
Jest runtime is not used by default, and users have to option of
enabling it.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
  • Loading branch information
jaysoo authored Feb 7, 2025
1 parent a7c8c10 commit 9bc6317
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 561 deletions.
166 changes: 0 additions & 166 deletions packages/jest/src/plugins/__snapshots__/plugin.spec.ts.snap

This file was deleted.

Loading

0 comments on commit 9bc6317

Please sign in to comment.