tests: Upgrade to Jest 26 (#28113)

This commit is contained in:
Chris Wendt 2021-11-23 18:27:24 -07:00 committed by GitHub
parent 3a83ebe968
commit b4c59981d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 609 additions and 534 deletions

View File

@ -12,7 +12,7 @@
*/
const { TextEncoder } = require('util')
const { JestFakeTimers } = require('@jest/fake-timers')
const { ModernFakeTimers } = require('@jest/fake-timers')
const { Crypto } = require('@peculiar/webcrypto')
const { ModuleMocker } = require('jest-mock')
const { installCommonGlobals } = require('jest-util')
@ -81,7 +81,7 @@ class JSDOMEnvironment {
idToRef: id => id,
refToId: reference => reference,
}
this.fakeTimers = new JestFakeTimers({
this.fakeTimers = new ModernFakeTimers({
config,
global,
moduleMocker: this.moduleMocker,

View File

@ -264,7 +264,7 @@
"html-webpack-plugin": "^5.3.2",
"http-proxy-middleware": "^1.1.2",
"identity-obj-proxy": "^3.0.0",
"jest": "^25.5.4",
"jest": "^26.6.3",
"jest-canvas-mock": "^2.3.0",
"jest-mock-extended": "^2.0.2-beta2",
"jsdom": "^15.2.1",

1137
yarn.lock

File diff suppressed because it is too large Load Diff