You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/user/config/index.md
+2
Original file line number
Diff line number
Diff line change
@@ -193,6 +193,7 @@ All options have default values which should fit most of the projects. Click on
193
193
|[**`diagnostics`**][diagnostics]|[Diagnostics related configuration.][diagnostics]|`boolean`\|`object`|`true`|
194
194
|[**`babelConfig`**][babelConfig]|[Babel(Jest) related configuration.][babelConfig]|`boolean`\|`object`|_disabled_|
195
195
|[**`stringifyContentPathRegex`**][stringifyContentPathRegex]|[Files which will become modules returning self content.][stringifyContentPathRegex]|`string`\|`RegExp`|_disabled_|
The `packageJson` option specifies the `package.json` file to use. An inline object may also be specified instead of a file path.
6
+
7
+
By default, the `package.json` file at the root of the project will be used. If it cannot be found, an empty project definition will be used instead.
8
+
9
+
### Examples
10
+
11
+
#### Path to a `packageJson` file
12
+
13
+
The path should be relative to the current working directory where you start Jest from. You can also use `<rootDir>` in the path to start from the project root dir.
0 commit comments