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: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
-`[jest-config]`[**BREAKING**] Rename `moduleLoader` to `runtime` ([#10817](https://github.com/facebook/jest/pull/10817))
15
15
-`[jest-config]`[**BREAKING**] Rename `extraGlobals` to `sandboxInjectedGlobals` ([#10817](https://github.com/facebook/jest/pull/10817))
16
16
-`[jest-config]`[**BREAKING**] Throw an error instead of showing a warning if multiple configs are used ([#12510](https://github.com/facebook/jest/pull/12510))
17
+
-`[jest-config]`[**BREAKING**] Do not normalize long deprecated configuration options `preprocessorIgnorePatterns`,`scriptPreprocessor`, `setupTestFrameworkScriptFile` and `testPathDirs` ([#1251270110](https://github.com/facebook/jest/pull/12701))
17
18
-`[jest-cli, jest-core]` Add `--ignoreProjects` CLI argument to ignore test suites by project name ([#12620](https://github.com/facebook/jest/pull/12620))
18
19
-`[jest-core]` Pass project config to `globalSetup`/`globalTeardown` function as second argument ([#12440](https://github.com/facebook/jest/pull/12440))
19
20
-`[jest-core]` Stabilize test runners with event emitters ([#12641](https://github.com/facebook/jest/pull/12641))
@@ -38,7 +39,7 @@
38
39
-`[jest-mock]`[**BREAKING**] Improve the usage of `jest.fn` generic type argument ([#12489](https://github.com/facebook/jest/pull/12489))
39
40
-`[jest-mock]` Add support for auto-mocking async generator functions ([#11080](https://github.com/facebook/jest/pull/11080))
40
41
-`[jest-mock]` Add `contexts` member to mock functions ([#12601](https://github.com/facebook/jest/pull/12601))
-`[@jest/reporters]` Pass `reporterContext` to custom reporter constructors as third argument ([#12657](https://github.com/facebook/jest/pull/12657))
43
44
-`[jest-resolve]`[**BREAKING**] Add support for `package.json``exports` ([#11961](https://github.com/facebook/jest/pull/11961), [#12373](https://github.com/facebook/jest/pull/12373))
44
45
-`[jest-resolve]` Support package self-reference ([#12682](https://github.com/facebook/jest/pull/12682))
Copy file name to clipboardExpand all lines: docs/Configuration.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1108,12 +1108,6 @@ If you want a path to be [relative to the root directory of your project](#rootd
1108
1108
1109
1109
For example, Jest ships with several plug-ins to `jasmine` that work by monkey-patching the jasmine API. If you wanted to add even more jasmine plugins to the mix (or if you wanted some custom, project-wide matchers for example), you could do so in these modules.
1110
1110
1111
-
:::info
1112
-
1113
-
`setupTestFrameworkScriptFile` is deprecated in favor of `setupFilesAfterEnv`.
1114
-
1115
-
:::
1116
-
1117
1111
Example `setupFilesAfterEnv` array in a jest.config.js:
<yellow> Option <bold>"browser"</> has been deprecated. Please install "browser-resolve" and use the "resolver" option in Jest configuration as shown in the documentation: https://jestjs.io/docs/configuration#resolver-string</>
125
+
<yellow></>
126
+
<yellow> <bold>Configuration Documentation:</></>
127
+
<yellow> https://jestjs.io/docs/configuration</>
128
+
<yellow></>",
129
+
],
130
+
],
131
+
"results": Array [
132
+
Object {
133
+
"type": "return",
134
+
"value": undefined,
135
+
},
136
+
],
137
+
}
138
+
`;
139
+
140
+
exports[`logs a deprecation warning when 'extraGlobals' option is passed 1`] = `
136
141
[MockFunction] {
137
142
"calls": Array [
138
143
Array [
@@ -156,7 +161,7 @@ exports[`extraGlobals logs a deprecation warning when \`extraGlobals\` is used 1
156
161
}
157
162
`;
158
163
159
-
exports[`moduleLoader logs a deprecation warning when \`moduleLoader\` is used 1`] = `
164
+
exports[`logs a deprecation warning when 'moduleLoader' option is passed 1`] = `
160
165
[MockFunction] {
161
166
"calls": Array [
162
167
Array [
@@ -180,6 +185,151 @@ exports[`moduleLoader logs a deprecation warning when \`moduleLoader\` is used 1
180
185
}
181
186
`;
182
187
188
+
exports[`logs a deprecation warning when 'preprocessorIgnorePatterns' option is passed 1`] = `
0 commit comments