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
+16-6Lines changed: 16 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,40 +5,50 @@
5
5
-`[jest-config]`[**BREAKING**] Default to Node testing environment instead of browser (JSDOM) ([#9874](https://github.com/facebook/jest/pull/9874))
6
6
-`[jest-config]`[**BREAKING**] Use `jest-circus` as default test runner ([#10686](https://github.com/facebook/jest/pull/10686))
7
7
-`[jest-config, jest-runtime]` Support ESM for files other than `.js` and `.mjs` ([#10823](https://github.com/facebook/jest/pull/10823))
8
+
-`[jest-repl, jest-runner]`[**BREAKING**] Run transforms over environment ([#8751](https://github.com/facebook/jest/pull/8751))
8
9
-`[jest-runner]`[**BREAKING**] set exit code to 1 if test logs after teardown ([#10728](https://github.com/facebook/jest/pull/10728))
9
10
-`[jest-snapshot]`: [**BREAKING**] Make prettier optional for inline snapshots - fall back to string replacement ([#7792](https://github.com/facebook/jest/pull/7792))
10
-
-`[jest-repl, jest-runner]`[**BREAKING**]Run transforms over environment ([#8751](https://github.com/facebook/jest/pull/8751))
11
+
-`[jest-snapshot]`[**BREAKING**]Make prettier optional for inline snapshots - fall back to string replacement ([#7792](https://github.com/facebook/jest/pull/7792))
11
12
-`[jest-runner]`[**BREAKING**] Run transforms over `runnner` ([#8823](https://github.com/facebook/jest/pull/8823))
12
13
-`[jest-runner]`[**BREAKING**] Run transforms over `testRunnner` ([#8823](https://github.com/facebook/jest/pull/8823))
13
14
14
15
### Fixes
15
16
17
+
-`[babel-plugin-jest-hoist]` Add `__dirname` and `__filename` to whitelisted globals ([#10903](https://github.com/facebook/jest/pull/10903))
18
+
-`[expect]`[**BREAKING**] Revise `expect.not.objectContaining()` to be the inverse of `expect.objectContaining()`, as documented. ([#10708](https://github.com/facebook/jest/pull/10708))
16
19
-`[jest-circus]` Fixed the issue of beforeAll & afterAll hooks getting executed even if it is inside a skipped `describe` block [#10451](https://github.com/facebook/jest/issues/10451)
17
20
-`[jest-circus]` Fix `testLocation` on Windows when using `test.each` ([#10871](https://github.com/facebook/jest/pull/10871))
21
+
-`[jest-console]``console.dir` now respects the second argument correctly ([#10638](https://github.com/facebook/jest/pull/10638))
22
+
-`[jest-environment-jsdom]` Use inner realm’s `ArrayBuffer` constructor ([#10885](https://github.com/facebook/jest/pull/10885))
18
23
-`[jest-jasmine2]` Fixed the issue of beforeAll & afterAll hooks getting executed even if it is inside a skipped `describe` block when it has child `tests` marked as either `only` or `todo`[#10451](https://github.com/facebook/jest/issues/10451)
19
24
-`[jest-jasmine2]` Fixed the issues of child `tests` marked with `only` or `todo` getting executed even if it is inside a skipped parent `describe` block [#10451](https://github.com/facebook/jest/issues/10451)
20
-
-`[jest-console]``console.dir` now respects the second argument correctly ([#10638](https://github.com/facebook/jest/pull/10638))
21
-
-`[expect]`[**BREAKING**] Revise `expect.not.objectContaining()` to be the inverse of `expect.objectContaining()`, as documented. ([#10708](https://github.com/facebook/jest/pull/10708))
22
25
-`[jest-reporter]` Handle empty files when reporting code coverage with V8 ([#10819](https://github.com/facebook/jest/pull/10819))
23
26
-`[jest-resolve]` Replace read-pkg-up with escalade package ([#10781](https://github.com/facebook/jest/pull/10781))
24
27
-`[jest-resolve]` Disable `jest-pnp-resolver` for Yarn 2 ([#10847](https://github.com/facebook/jest/pull/10847))
25
28
-`[jest-runtime]`[**BREAKING**] Do not inject `global` variable into module wrapper ([#10644](https://github.com/facebook/jest/pull/10644))
26
29
-`[jest-runtime]`[**BREAKING**] remove long-deprecated `jest.addMatchers`, `jest.resetModuleRegistry`, and `jest.runTimersToTime` ([#9853](https://github.com/facebook/jest/pull/9853))
30
+
-`[jest-runtime]` Fix stack overflow and promise deadlock when importing mutual dependant ES module ([#10892](https://github.com/facebook/jest/pull/10892))
27
31
-`[jest-transform]` Show enhanced `SyntaxError` message for all `SyntaxError`s ([#10749](https://github.com/facebook/jest/pull/10749))
28
32
-`[jest-transform]`[**BREAKING**] Refactor API to pass an options bag around rather than multiple boolean options ([#10753](https://github.com/facebook/jest/pull/10753))
29
33
-`[jest-transform]`[**BREAKING**] Refactor API of transformers to pass an options bag rather than separate `config` and other options
34
+
-`[pretty-format]`[**BREAKING**] Convert to ES Modules ([#10515](https://github.com/facebook/jest/pull/10515))
30
35
31
36
### Chore & Maintenance
32
37
33
-
-`[jest-console]`[**BREAKING**] Move `root` into `config` and take `GlobalConfig` as mandatory parameter for `getConsoleOutput` ([#10126](https://github.com/facebook/jest/pull/10126))
34
38
-`[*]`[**BREAKING**] Only support Node LTS releases and Node 15 ([#10685](https://github.com/facebook/jest/pull/10685))
35
39
-`[*]`[**BREAKING**] Add `exports` field to all `package.json`s ([#9921](https://github.com/facebook/jest/pull/9921))
36
40
-`[*]` Make it easier for Jest's packages to use the VM escape hatch ([#10824](https://github.com/facebook/jest/pull/10824))
37
41
-`[jest-config]`[**BREAKING**] Remove `enabledTestsMap` config, use `filter` instead ([#10787](https://github.com/facebook/jest/pull/10787))
38
-
-`[jest-resolve]`[**BREAKING**] Migrate to ESM ([#10688](https://github.com/facebook/jest/pull/10688))
42
+
-`[jest-console]`[**BREAKING**] Move `root` into `config` and take `GlobalConfig` as mandatory parameter for `getConsoleOutput` ([#10126](https://github.com/facebook/jest/pull/10126))
43
+
-`[jest-fake-timers]` Clarify global behavior of `jest.useFakeTimers` and `jest.useRealTimers` ([#10867](https://github.com/facebook/jest/pull/10867))
44
+
-`[jest-haste-map]`[**BREAKING**] Migrate to ESM ([#10875](https://github.com/facebook/jest/pull/10875))
45
+
-`[jest-jasmine2]`[**BREAKING**] Migrate to ESM ([#10906](https://github.com/facebook/jest/pull/10906))
39
46
-`[jest-repl, jest-runtime]`[**BREAKING**] Move the `jest-runtime` CLI into `jest-repl` ([#10016](https://github.com/facebook/jest/pull/10016))
47
+
-`[jest-resolve]`[**BREAKING**] Migrate to ESM ([#10688](https://github.com/facebook/jest/pull/10688))
48
+
-`[jest-resolve-dependencies]`[**BREAKING**] Migrate to ESM ([#10876](https://github.com/facebook/jest/pull/10876))
49
+
-`[jest-mock]`[**BREAKING**] Migrate to ESM ([#10887](https://github.com/facebook/jest/pull/10887))
50
+
-`[jest-runner]`[**BREAKING**] Migrate to ESM ([#10900](https://github.com/facebook/jest/pull/10900))
40
51
-`[jest-util]` No longer checking `enumerable` when adding `process.domain` ([#10862](https://github.com/facebook/jest/pull/10862))
41
-
-`[jest-fake-timers]` Clarify global behavior of `jest.useFakeTimers` and `jest.useRealTimers` ([#10867](https://github.com/facebook/jest/pull/10867))
0 commit comments