fix(deps): update dependency jsdom to v22 #12006
Annotations
10 errors
e2e/__tests__/nestedTestDefinitions.test.ts#L29
expect(received).toMatchSnapshot()
Snapshot name: `print correct error message with nested test definitions outside describe 1`
- Snapshot - 15
+ Received + 9
"FAIL __tests__/nestedTestOutsideDescribe.js
- ✕ outer test
-
- ● outer test
-
- Tests cannot be nested. Test "inner test" cannot run because it is nested within "outer test".
-
- 13 | expect(getTruthy()).toBeTruthy();
+ ● 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 | test('inner test', () => {
- | ^
- 16 | expect(getTruthy()).toBe('This test should not have run');
- 17 | });
- 18 | });
-
- at Object.test (__tests__/nestedTestOutsideDescribe.js:15:3)"
+ ^^^
+
+ SyntaxError: Unexpected token '||='
+
+ at Object.<anonymous> (../../node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)"
at Object.toMatchSnapshot (e2e/__tests__/nestedTestDefinitions.test.ts:29:44)
|
e2e/__tests__/nestedTestDefinitions.test.ts#L39
expect(received).toMatchSnapshot()
Snapshot name: `print correct error message with nested test definitions inside describe 1`
- Snapshot - 16
+ Received + 9
"FAIL __tests__/nestedTestWithinDescribe.js
- in describe
- ✕ outer test
-
- ● in describe › outer test
-
- Tests cannot be nested. Test "inner test" cannot run because it is nested within "outer test".
-
- 14 | expect(getTruthy()).toBeTruthy();
- 15 |
- > 16 | test('inner test', () => {
- | ^
+ ● 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);
+ ^^^
+
- 17 | expect(getTruthy()).toBeTruthy();
- 18 | });
- 19 | });
-
- at Object.test (__tests__/nestedTestWithinDescribe.js:16:5)"
+ SyntaxError: Unexpected token '||='
+
+ at Object.<anonymous> (../../node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)"
at Object.toMatchSnapshot (e2e/__tests__/nestedTestDefinitions.test.ts:39:44)
|
e2e/__tests__/nestedTestDefinitions.test.ts#L49
expect(received).toContain(expected) // indexOf
Expected substring: "Cannot nest a describe inside a test. Describe block \"inner describe\" cannot run because it is nested within \"test\"."
Received string: "FAIL __tests__/nestedDescribeInTest.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: 0.767 s
Ran all test suites matching /nestedDescribeInTest/i."
at Object.toContain (e2e/__tests__/nestedTestDefinitions.test.ts:49:27)
|
e2e/__tests__/nestedTestDefinitions.test.ts#L62
expect(received).toContain(expected) // indexOf
Expected substring: "Hooks cannot be defined inside tests. Hook of type \"beforeEach\" is nested within \"test\"."
Received string: "FAIL __tests__/nestedHookInTest.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: 0.751 s
Ran all test suites matching /nestedHookInTest/i."
at Object.toContain (e2e/__tests__/nestedTestDefinitions.test.ts:62:27)
|
e2e/__tests__/fakeTimers.test.ts#L30
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/fakeTimers.test.ts:30:29)
|
e2e/__tests__/fakeTimers.test.ts#L57
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.392 s
Ran all test suites."
at Object.toMatch (e2e/__tests__/fakeTimers.test.ts:57:27)
|
e2e/__tests__/testEnvironment.test.ts#L25
expect(received).toBe(expected) // Object.is equality
Expected: true
Received: false
at Object.toBe (e2e/__tests__/testEnvironment.test.ts:25:26)
|
e2e/__tests__/resolveConditions.test.ts#L20
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/resolveConditions.test.ts:20:24)
|
e2e/__tests__/nestedEventLoop.test.ts#L12
expect(received).toBe(expected) // Object.is equality
Expected: 0
Received: 1
at Object.toBe (e2e/__tests__/nestedEventLoop.test.ts:12:27)
|
|
The logs for this run have expired and are no longer available.
Loading