fix(deps): update dependency jsdom to v22 #12006
Annotations
5 errors
e2e/__tests__/testEnvironmentCircusAsync.test.ts#L18
expect(received).toMatchInlineSnapshot(snapshot)
Snapshot name: `calls asynchronous handleTestEvent in testEnvironment 1`
- Snapshot - 44
+ Received + 1
Array [
- "setup",
- "warning: add_hook is a sync event",
- "warning: start_describe_definition is a sync event",
- "warning: add_hook is a sync event",
- "warning: add_hook is a sync event",
- "warning: add_test is a sync event",
- "warning: add_test is a sync event",
- "warning: finish_describe_definition is a sync event",
- "add_hook",
- "start_describe_definition",
- "add_hook",
- "add_hook",
- "add_test",
- "add_test",
- "finish_describe_definition",
- "run_start",
- "run_describe_start",
- "run_describe_start",
- "test_start: passing test",
- "test_started: passing test",
- "hook_start: beforeEach",
- "hook_success: beforeEach",
- "hook_start: beforeEach",
- "hook_success: beforeEach",
- "test_fn_start: passing test",
- "test_fn_success: passing test",
- "hook_start: afterEach",
- "hook_failure: afterEach",
- "test_done: passing test",
- "test_start: failing test",
- "test_started: failing test",
- "hook_start: beforeEach",
- "hook_success: beforeEach",
- "hook_start: beforeEach",
- "hook_success: beforeEach",
- "test_fn_start: failing test",
- "test_fn_failure: failing test",
- "hook_start: afterEach",
- "hook_failure: afterEach",
- "test_done: failing test",
- "run_describe_finish",
- "run_describe_finish",
- "run_finish",
- "teardown",
+ "",
]
at Object.toMatchInlineSnapshot (e2e/__tests__/testEnvironmentCircusAsync.test.ts:18:17)
|
e2e/__tests__/testEnvironmentCircus.test.ts#L15
expect(received).toBe(expected) // Object.is equality
Expected: false
Received: true
at Object.toBe (e2e/__tests__/testEnvironmentCircus.test.ts:15:25)
|
e2e/__tests__/domDiffing.test.ts#L16
expect(received).toMatchSnapshot()
Snapshot name: `should work without error 1`
- Snapshot - 40
+ Received + 9
FAIL __tests__/dom.test.js
- ✕ use toBe compare two div
- ✕ compare span and div
-
- ● use toBe compare two div
-
- expect(received).toBe(expected) // Object.is equality
-
- If it should pass with deep equality, replace "toBe" with "toStrictEqual"
-
- Expected: <div />
- Received: serializes to the same string
-
- 12 | const div1 = document.createElement('div');
- 13 | const div2 = document.createElement('div');
- > 14 | expect(div1).toBe(div2);
+ ● Test suite failed to run
+
+ /home/runner/work/jest/jest/node_modules/jsdom/lib/jsdom/living/nodes/HTMLInputElement-impl.js:583
+ this[filesSymbol] ||= FileList.createImpl(this._globalObject);
- | ^
- 15 | });
- 16 |
- 17 | test('compare span and div', () => {
-
- at Object.toBe (__tests__/dom.test.js:14:16)
-
- ● compare span and div
-
- expect(received).toBe(expected) // Object.is equality
-
- - Expected - 1
- + Received + 1
-
- - <span />
- + <div />
-
- 16 |
- 17 | test('compare span and div', () => {
- > 18 | expect(document.createElement('div')).toBe(document.createElement('span'));
- | ^
- 19 | });
- 20 |
-
- at Object.toBe (__tests__/dom.test.js:18:41)
+ ^^^
+
+ SyntaxError: Unexpected token '||='
+
+ at Object.<anonymous> (../../node_modules/jsdom/lib/jsdom/living/generated/HTMLInputElement.js:1875:14)
at Object.toMatchSnapshot (e2e/__tests__/domDiffing.test.ts:16:16)
at runMicrotasks (<anonymous>)
|
e2e/__tests__/domDiffing.test.ts#L17
expect(received).toMatchSnapshot()
Snapshot name: `should work without error 2`
- Snapshot - 1
+ Received + 1
Test Suites: 1 failed, 1 total
- Tests: 2 failed, 2 total
+ Tests: 0 total
Snapshots: 0 total
Time: <<REPLACED>>
Ran all test suites.
at Object.toMatchSnapshot (e2e/__tests__/domDiffing.test.ts:17:19)
at runMicrotasks (<anonymous>)
|
|
The logs for this run have expired and are no longer available.
Loading