feat: update to Angular 21 (and switch to Vitest) #657
Annotations
12 errors
|
The run was canceled by @timdeschryver.
|
|
test:
apps/example-app/src/app/examples/14-async-component.spec.ts#L7
Error: zone-testing.js is needed for the fakeAsync() test helper but could not be found.
Please make sure that your environment includes zone.js/testing
❯ withFakeAsyncTestModule node_modules/@angular/core/fesm2022/testing.mjs:297:11
❯ fakeAsync node_modules/@angular/core/fesm2022/testing.mjs:311:10
❯ apps/example-app/src/app/examples/14-async-component.spec.ts:7:42
❯ apps/example-app/src/app/examples/14-async-component.spec.ts:1:1
|
|
test:
apps/example-app/src/app/examples/12-service-component.spec.ts#L50
ReferenceError: jest is not defined
❯ mockFunctions projects/testing-library/jest-utils/src/lib/create-mock.ts:20:22
❯ createMock projects/testing-library/jest-utils/src/lib/create-mock.ts:27:3
❯ apps/example-app/src/app/examples/12-service-component.spec.ts:50:28
|
|
test:
apps/example-app/src/app/examples/05-component-provider.spec.ts#L71
ReferenceError: jest is not defined
❯ mockFunctions projects/testing-library/jest-utils/src/lib/create-mock.ts:20:22
❯ createMock projects/testing-library/jest-utils/src/lib/create-mock.ts:27:3
❯ provideMock projects/testing-library/jest-utils/src/lib/create-mock.ts:45:15
❯ apps/example-app/src/app/examples/05-component-provider.spec.ts:71:26
|
|
test:
apps/example-app/src/app/examples/05-component-provider.spec.ts#L38
ReferenceError: jest is not defined
❯ mockFunctions projects/testing-library/jest-utils/src/lib/create-mock.ts:20:22
❯ createMock projects/testing-library/jest-utils/src/lib/create-mock.ts:27:3
❯ apps/example-app/src/app/examples/05-component-provider.spec.ts:38:19
|
|
test:
node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js#L339
TestingLibraryElementError: Found multiple elements with the role "heading"
Here are the matching elements:
Ignored nodes: comments, script, style
<h1>
My title
</h1>
Ignored nodes: comments, script, style
<h1>
My title
</h1>
(If this is intentional, then use the `*AllBy*` variant of the query (like `queryAllByText`, `getAllByText`, or `findAllByText`)).
Ignored nodes: comments, script, style
<body>
<div>
<div
onoff=""
>
init
</div>
</div>
<div
ng-version="21.0.5"
>
<h1>
My title
</h1>
</div>
<div
ng-version="21.0.5"
>
<h1>
My title
</h1>
</div>
</body>
❯ Object.getElementError node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:339:19
❯ getElementError node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1149:22
❯ getMultipleElementsFoundError node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1152:10
❯ node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1188:13
❯ node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js:1228:19
❯ projects/testing-library/src/tests/issues/issue-398-component-without-host-id.spec.ts:12:17
|
|
test:
projects/testing-library/src/tests/find-by.spec.ts#L37
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ projects/testing-library/src/tests/find-by.spec.ts:37:3
|
|
test:
projects/testing-library/src/tests/find-by.spec.ts#L30
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ projects/testing-library/src/tests/find-by.spec.ts:30:3
|
|
test:
projects/testing-library/src/tests/find-by.spec.ts#L23
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ projects/testing-library/src/tests/find-by.spec.ts:23:3
|
|
test:
projects/testing-library/src/tests/find-by.spec.ts#L18
Error: Test timed out in 5000ms.
If this is a long-running test, pass a timeout value as the last argument or configure it globally with "testTimeout".
❯ projects/testing-library/src/tests/find-by.spec.ts:18:3
|
|
test:
projects/testing-library/src/tests/auto-cleanup.spec.ts#L40
Error: expect(element).toBeEmptyDOMElement()
Received:
"<div>Hello !</div>"
❯ projects/testing-library/src/tests/auto-cleanup.spec.ts:40:27
|
|
The run was canceled by @timdeschryver.
|
Loading