Skip to content

Commit 5ebb475

Browse files
committed
docs(testing): add useJestResolver option to jest plugin docs
1 parent b45fc9f commit 5ebb475

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

astro-docs/src/content/docs/technologies/test-tools/jest/introduction.mdoc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,13 @@ Configure the plugin in `nx.json`:
165165
}
166166
```
167167

168-
| Option | Type | Default | Description |
169-
| -------------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ |
170-
| `targetName` | string | `test` | Name of the inferred Jest target. |
171-
| `ciTargetName` | string | none | Creates a CI-only target for atomized test tasks. |
172-
| `ciGroupName` | string | none | Custom group name for atomized tasks in Nx Cloud/UI. |
173-
| `disableJestRuntime` | boolean | `true` | When `true`, Nx skips creating the Jest runtime and computes inputs/outputs itself. Set to `false` to enable the Jest runtime. |
168+
| Option | Type | Default | Description |
169+
| -------------------- | ------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
170+
| `targetName` | string | `test` | Name of the inferred Jest target. |
171+
| `ciTargetName` | string | none | Creates a CI-only target for atomized test tasks. |
172+
| `ciGroupName` | string | none | Custom group name for atomized tasks in Nx Cloud/UI. |
173+
| `disableJestRuntime` | boolean | `true` | When `true`, Nx skips creating the Jest runtime and computes inputs/outputs itself. Set to `false` to enable the Jest runtime. |
174+
| `useJestResolver` | boolean | `true` when runtime is enabled | Whether to use Jest's resolver for resolving config file references as task inputs. Follows symlinks and honors custom `moduleDirectories`/`modulePaths`. Faster path-based classification is used when `false`. |
174175

175176
`disableJestRuntime` defaults to `true` because the plugin treats it as enabled only when `options.disableJestRuntime !== false`. This reduces computation time for inferred tasks; set it to `false` if you need Jest runtime inference.
176177

0 commit comments

Comments
 (0)