@wordpress/jest-preset-default 7.1.5-next.33ec3857e2.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
- ## 7.1.4-next.0 (2021-12-20)
5
+ ## 8.0.0 (2022-01-27)
6
+
7
+ ### Breaking Changes
8
+
9
+ - The peer `jest` dependency has been updated from requiring `>=26` to requiring `>=27` (see [Breaking Changes](https://jestjs.io/blog/2021/05/25/jest-27), [#33287](https://github.com/WordPress/gutenberg/pull/33287)).
6
10
 
7
11
  ### Bug Fixes
8
12
 
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Gutenberg
2
2
 
3
- Copyright 2016-2021 by the contributors
3
+ Copyright 2016-2022 by the contributors
4
4
 
5
5
  **License for Contributions (on and after April 15, 2021)**
6
6
 
package/jest-preset.js CHANGED
@@ -18,6 +18,7 @@ module.exports = {
18
18
  ),
19
19
  ],
20
20
  snapshotSerializers: [ require.resolve( 'enzyme-to-json/serializer.js' ) ],
21
+ testEnvironment: 'jsdom',
21
22
  testMatch: [
22
23
  '**/__tests__/**/*.[jt]s?(x)',
23
24
  '**/test/*.[jt]s?(x)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/jest-preset-default",
3
- "version": "7.1.5-next.33ec3857e2.0",
3
+ "version": "8.0.0",
4
4
  "description": "Default Jest preset for WordPress development.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -32,17 +32,19 @@
32
32
  "main": "index.js",
33
33
  "dependencies": {
34
34
  "@wojtekmaj/enzyme-adapter-react-17": "^0.6.1",
35
- "@wordpress/jest-console": "^4.1.2-next.33ec3857e2.0",
36
- "babel-jest": "^26.6.3",
35
+ "@wordpress/jest-console": "^5.0.0",
36
+ "babel-jest": "^27.4.5",
37
37
  "enzyme": "^3.11.0",
38
38
  "enzyme-to-json": "^3.4.4"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@babel/core": ">=7",
42
- "jest": ">=26"
42
+ "jest": ">=27",
43
+ "react": "^17.0.0",
44
+ "react-dom": "^17.0.0"
43
45
  },
44
46
  "publishConfig": {
45
47
  "access": "public"
46
48
  },
47
- "gitHead": "51c7917ea7fac72953702f24d6daac87d99e7617"
49
+ "gitHead": "d95ccb9366e249133cdb1d7b25c382446b9ee502"
48
50
  }
@@ -6,6 +6,10 @@ global.window.tinyMCEPreInit = {
6
6
  baseURL: 'about:blank',
7
7
  };
8
8
 
9
+ global.window.setImmediate = function ( callback ) {
10
+ return setTimeout( callback, 0 );
11
+ };
12
+
9
13
  global.window.requestAnimationFrame = function requestAnimationFrame(
10
14
  callback
11
15
  ) {