@wordpress/jest-preset-default 12.44.0 → 12.45.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/jest-preset-default",
3
- "version": "12.44.0",
3
+ "version": "12.45.0",
4
4
  "description": "Default Jest preset for WordPress development.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "main": "index.js",
33
33
  "dependencies": {
34
- "@wordpress/jest-console": "^8.44.0",
34
+ "@wordpress/jest-console": "^8.45.0",
35
35
  "babel-jest": "29.7.0"
36
36
  },
37
37
  "peerDependencies": {
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "b862d8c84121a47bbeff882f6c87e61681ce2e0d"
44
+ "gitHead": "8c229eaed0e88c9827e2da3d73a78f9ddd77714b"
45
45
  }
@@ -3,7 +3,6 @@
3
3
  globalThis.SCRIPT_DEBUG = true;
4
4
 
5
5
  // These are necessary to load TinyMCE successfully.
6
- global.URL = window.URL;
7
6
  global.window.tinyMCEPreInit = {
8
7
  // Without this, TinyMCE tries to determine its URL by looking at the
9
8
  // <script> tag where it was loaded from, which of course fails here.
@@ -14,18 +13,6 @@ global.window.setImmediate = function ( callback ) {
14
13
  return setTimeout( callback, 0 );
15
14
  };
16
15
 
17
- global.window.requestAnimationFrame = function requestAnimationFrame(
18
- callback
19
- ) {
20
- const randomDelay = Math.round( ( Math.random() * 1_000 ) / 60 );
21
-
22
- return setTimeout( () => callback( Date.now() ), randomDelay );
23
- };
24
-
25
- global.window.cancelAnimationFrame = function cancelAnimationFrame( handle ) {
26
- return clearTimeout( handle );
27
- };
28
-
29
16
  // Ignoring `options` argument since we unconditionally schedule this ASAP.
30
17
  global.window.requestIdleCallback = function requestIdleCallback( callback ) {
31
18
  const start = Date.now();