Skip to content

Commit 9bc6317

Browse files
authored
feat(testing): disable jest runtime by default when inferring targets (#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 #
1 parent a7c8c10 commit 9bc6317

File tree

3 files changed

+109
-561
lines changed

3 files changed

+109
-561
lines changed

packages/jest/src/plugins/__snapshots__/plugin.spec.ts.snap

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)