Replace Jest with Vitest #51
Annotations
10 errors and 1 warning
Tests:
ui/src/lib/http-client.ts#L2380
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:52:23
❯ mockCall node_modules/@vitest/spy/dist/index.js:61:17
❯ spy node_modules/tinyspy/dist/index.js:45:80
❯ Module.postRequestRetry src/lib/http-client.ts:2380:16
❯ Module.ownedGrouping src/lib/fetchers.ts:137:12
❯ processTicksAndRejections node:internal/process/task_queues:96:5
This error originated in "tests/lib/fetchers.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should handle the error response". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Tests:
ui/src/lib/http-client.ts#L2434
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:64:23
❯ mockCall node_modules/@vitest/spy/dist/index.js:61:17
❯ spy node_modules/tinyspy/dist/index.js:45:80
❯ Module.putRequestAsync src/lib/http-client.ts:2434:16
❯ Module.addIncludeMembersAsync src/lib/actions.ts:229:12
❯ processTicksAndRejections node:internal/process/task_queues:96:5
This error originated in "tests/lib/actions.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should handle the successful response". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Tests:
ui/src/lib/http-client.ts#L2434
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:64:23
❯ mockCall node_modules/@vitest/spy/dist/index.js:61:17
❯ spy node_modules/tinyspy/dist/index.js:45:80
❯ Module.putRequestAsync src/lib/http-client.ts:2434:16
❯ Module.addExcludeMembersAsync src/lib/actions.ts:314:12
This error originated in "tests/lib/actions.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should handle the successful response". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Tests:
ui/src/lib/http-client.ts#L284
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:64:23
❯ mockCall node_modules/@vitest/spy/dist/index.js:61:17
❯ fetch node_modules/tinyspy/dist/index.js:45:80
❯ Module.postRequestAsync src/lib/http-client.ts:284:1
❯ Module.memberAttributeResultsAsync src/lib/actions.ts:2035:32
This error originated in "tests/lib/actions.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should handle the successful response". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Tests:
ui/src/lib/http-client.ts#L2482
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:64:23
❯ mockCall node_modules/@vitest/spy/dist/index.js:61:17
❯ spy node_modules/tinyspy/dist/index.js:45:80
❯ Module.deleteRequestAsync src/lib/http-client.ts:2482:16
❯ Module.resetIncludeGroupAsync src/lib/actions.ts:2079:32
This error originated in "tests/lib/actions.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should handle the successful response". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Tests:
ui/src/lib/http-client.ts#L2482
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:64:23
❯ mockCall node_modules/@vitest/spy/dist/index.js:61:17
❯ spy node_modules/tinyspy/dist/index.js:45:80
❯ Module.deleteRequestAsync src/lib/http-client.ts:2482:16
❯ Module.resetExcludeGroupAsync src/lib/actions.ts:2101:32
This error originated in "tests/lib/actions.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
The latest test that might've caused the error is "should handle the successful response". It might mean one of the following:
- The error was thrown, while Vitest was running this test.
- If the error occurred after the test had been completed, this was the last documented test before it was thrown.
|
Tests:
ui/node_modules/next/server.js#L2
ReferenceError: Request is not defined
❯ Object.<anonymous> node_modules/next/src/server/web/spec-extension/request.ts:15:34
❯ Object.<anonymous> node_modules/next/server.js:2:16
|
Tests:
ui/src/lib/http-client.ts#L2412
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:287:26
❯ Module.putRequest src/lib/http-client.ts:2412:16
❯ Module.updateDescription src/lib/actions.ts:135:12
❯ tests/lib/actions.test.ts:72:13
|
Tests:
ui/src/lib/http-client.ts#L2412
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:52:23
❯ Module.putRequest src/lib/http-client.ts:2412:16
❯ Module.updateDescription src/lib/actions.ts:135:12
❯ tests/lib/actions.test.ts:85:20
|
Tests:
ui/src/lib/http-client.ts#L2412
ReferenceError: Request is not defined
❯ normalizeRequest node_modules/vitest-fetch-mock/src/index.ts:340:24
❯ node_modules/vitest-fetch-mock/src/index.ts:141:22
❯ Module.putRequest src/lib/http-client.ts:2412:16
❯ Module.updateDescription src/lib/actions.ts:135:12
❯ tests/lib/actions.test.ts:90:20
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading