fix(deps): update dependency jsdom to v22 #12006
Annotations
7 errors
e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts#L79
expect(received).toContain(expected) // indexOf
Expected substring: "1 snapshot failed from 1 test suite."
Received string: "FAIL __tests__/MismatchingSnapshot.test.js
● Test suite failed to run·
D:\\a\\jest\\jest\\node_modules\\jsdom\\lib\\jsdom\\living\\nodes\\HTMLInputElement-impl.js:583
this[filesSymbol] ||= FileList.createImpl(this._globalObject);
^^^·
SyntaxError: Unexpected token '||='·
at Object.<anonymous> (D:/a/jest/jest/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)·
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 2.085 s
Ran all test suites."
at Object.toContain (e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts:79:28)
|
e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts#L128
expect(received).toContain(expected) // indexOf
Expected substring: "1 snapshot failed from 1 test suite."
Received string: "FAIL __tests__/MismatchingSnapshot.test.js
● Test suite failed to run·
D:\\a\\jest\\jest\\node_modules\\jsdom\\lib\\jsdom\\living\\nodes\\HTMLInputElement-impl.js:583
this[filesSymbol] ||= FileList.createImpl(this._globalObject);
^^^·
SyntaxError: Unexpected token '||='·
at Object.<anonymous> (D:/a/jest/jest/node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)·
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.567 s
Ran all test suites."
at Object.toContain (e2e/__tests__/toMatchInlineSnapshotWithJSX.test.ts:128:28)
|
e2e/__tests__/fakeTimersLegacy.test.ts#L35
expect(received).toMatch(expected)
Expected substring: "requestAnimationFrame test"
Received string: "FAIL __tests__/requestAnimationFrame.test.js
● Test suite failed to run·
D:\\a\\jest\\jest\\node_modules\\jsdom\\lib\\jsdom\\living\\nodes\\HTMLInputElement-impl.js:583
this[filesSymbol] ||= FileList.createImpl(this._globalObject);
^^^·
SyntaxError: Unexpected token '||='·
at Object.<anonymous> (../../../node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)·
Test Suites: 1 failed, 1 total
Tests: 0 total
Snapshots: 0 total
Time: 1.003 s
Ran all test suites."
at Object.toMatch (e2e/__tests__/fakeTimersLegacy.test.ts:35:27)
|
e2e/__tests__/config.test.ts#L65
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/config.test.ts:65:27)
|
e2e/__tests__/testEnvironmentAsync.test.ts#L29
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/testEnvironmentAsync.test.ts:29:27)
|
e2e/__tests__/wrongEnv.test.ts#L14
expect(received).toMatchSnapshot()
Snapshot name: `Wrong globals for environment print useful error for unref 1`
- Snapshot - 18
+ Received + 9
"FAIL __tests__/jsdom.js
- ✕ use unref
-
- ● use unref
-
- The error below may be caused by using the wrong test environment, see https://jestjs.io/docs/configuration#testenvironment-string.
- Consider using the "node" test environment.
-
- TypeError: setTimeout(...).unref is not a function
-
- 11 |
- 12 | test('use unref', () => {
- > 13 | setTimeout(() => {}, 0).unref();
+ ● Test suite failed to run
+
+ D:\a\jest\jest\node_modules\jsdom\lib\jsdom\living\nodes\HTMLInputElement-impl.js:583
+ this[filesSymbol] ||= FileList.createImpl(this._globalObject);
- | ^
- 14 |
- 15 | expect(1).toBe(1);
- 16 | });
-
- at Object.unref (__tests__/jsdom.js:13:27)"
+ ^^^
+
+ SyntaxError: Unexpected token '||='
+
+ at Object.<anonymous> (../../node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)"
at toMatchSnapshot (e2e/__tests__/wrongEnv.test.ts:14:46)
at Object.assertFailuresAndSnapshot (e2e/__tests__/wrongEnv.test.ts:31:5)
|
|
The logs for this run have expired and are no longer available.
Loading