Skip to content

ci: include Vitest versions in matrix #151

ci: include Vitest versions in matrix

ci: include Vitest versions in matrix #151

Triggered via pull request April 22, 2026 19:06
@mcousmcous
synchronize #42
ci-vitest-matrix
Status Failure
Total duration 28s
Artifacts 1

ci.yaml

on: pull_request
Matrix: test
Coverage finished
0s
Coverage finished
Fit to window
Zoom out
Zoom in

Annotations

11 errors and 7 warnings
Test / Node.js 24 / Vitest 3
Process completed with exit code 1.
test/debug.test.ts > vitest-when debug > debugs unmatched calls: test/debug.test.ts#L77
AssertionError: expected { name: 'spy', …(3) } to match object { name: 'vi.fn()', …(3) } - Expected + Received @@ -1,8 +1,8 @@ { "description": StringContaining "1 unmatched call", - "name": "vi.fn()", + "name": "spy", "stubbings": [ { "args": [ Any<String>, ], ❯ test/debug.test.ts:77:20
test/debug.test.ts > vitest-when debug > debugs called stubbings: test/debug.test.ts#L54
AssertionError: expected { name: 'spy', …(3) } to match object { name: 'vi.fn()', …(3) } - Expected + Received @@ -1,8 +1,8 @@ { "description": StringContaining "1 stubbing with 2 calls", - "name": "vi.fn()", + "name": "spy", "stubbings": [ { "args": [ Any<String>, ], ❯ test/debug.test.ts:54:20
test/debug.test.ts > vitest-when debug > debugs uncalled stubbings: test/debug.test.ts#L30
AssertionError: expected { name: 'spy', …(3) } to deeply equal { name: 'vi.fn()', …(3) } - Expected + Received @@ -1,8 +1,8 @@ { "description": StringContaining "1 stubbing with 0 calls", - "name": "vi.fn()", + "name": "spy", "stubbings": [ { "args": [ "hello", "world", ❯ test/debug.test.ts:30:20
test/debug.test.ts > vitest-when debug > debugs a non-stubbed spy: test/debug.test.ts#L13
AssertionError: expected { name: 'spy', stubbings: [], …(2) } to deeply equal { Object (name, stubbings, ...) } - Expected + Received { "description": StringContaining "0 stubbings with 0 calls", - "name": "vi.fn()", + "name": "spy", "stubbings": [], "unmatchedCalls": [], } ❯ test/debug.test.ts:13:20
Test / Node.js 24 / Vitest 2
Process completed with exit code 1.
test/vitest-when.test.ts > vitest-when > should fall back to original implementation after reset: test/vitest-when.test.ts#L67
AssertionError: expected undefined to deeply equal 4 - Expected: 4 + Received: undefined ❯ test/vitest-when.test.ts:67:20
test/debug.test.ts > vitest-when debug > debugs unmatched calls: test/debug.test.ts#L77
AssertionError: expected { name: 'spy', …(3) } to match object { name: 'vi.fn()', …(3) } - Expected + Received Object { "description": StringContaining "1 unmatched call", - "name": "vi.fn()", + "name": "spy", "stubbings": Array [ Object { "args": Array [ Any<String>, ], "behavior": Object { "type": "return", "value": 42, }, "calls": Array [], }, ], "unmatchedCalls": Array [ Array [ 1234, ], ], } ❯ test/debug.test.ts:77:20
test/debug.test.ts > vitest-when debug > debugs called stubbings: test/debug.test.ts#L54
AssertionError: expected { name: 'spy', …(3) } to match object { name: 'vi.fn()', …(3) } - Expected + Received Object { "description": StringContaining "1 stubbing with 2 calls", - "name": "vi.fn()", + "name": "spy", "stubbings": Array [ Object { "args": Array [ Any<String>, ], "behavior": Object { "type": "return", "value": 42, }, "calls": Array [ Array [ "hello", ], Array [ "world", ], ], }, ], "unmatchedCalls": Array [], } ❯ test/debug.test.ts:54:20
test/debug.test.ts > vitest-when debug > debugs uncalled stubbings: test/debug.test.ts#L30
AssertionError: expected { name: 'spy', …(3) } to deeply equal { name: 'vi.fn()', …(3) } - Expected + Received Object { "description": StringContaining "1 stubbing with 0 calls", - "name": "vi.fn()", + "name": "spy", "stubbings": Array [ Object { "args": Array [ "hello", "world", ], "behavior": Object { "type": "return", "value": 42, }, "calls": Array [], }, ], "unmatchedCalls": Array [], } ❯ test/debug.test.ts:30:20
test/debug.test.ts > vitest-when debug > debugs a non-stubbed spy: test/debug.test.ts#L13
AssertionError: expected { name: 'spy', stubbings: [], …(2) } to deeply equal { Object (name, stubbings, ...) } - Expected + Received Object { "description": StringContaining "0 stubbings with 0 calls", - "name": "vi.fn()", + "name": "spy", "stubbings": Array [], "unmatchedCalls": Array [], } ❯ test/debug.test.ts:13:20
Test / Node.js 24 / Vitest 3
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test / Node.js 24 / Vitest latest
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test / Node.js 20 / Vitest latest
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test / Node.js 22 / Vitest latest
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test / Node.js 18 / Vitest latest
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/upload-artifact@v4, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Test / Node.js 24 / Vitest 2
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/

Artifacts

Produced during runtime
Name Size Digest
npm-dist
10.4 KB
sha256:8224ef6cb733bbf5b6a894a4156d4e9df92973aa7227c45505bc821487e52c63