Skip to content

chore: Migrate unit tests from mocha to vitest #1164

chore: Migrate unit tests from mocha to vitest

chore: Migrate unit tests from mocha to vitest #1164

Triggered via pull request March 25, 2026 02:16
Status Failure
Total duration 24s
Artifacts

build.yml

on: pull_request
Matrix: build
act-test
4s
act-test
deploy
deploy
Host with GitHub Pages
Host with GitHub Pages
Publish npm package
Publish npm package
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 5 warnings
build (22.x)
Process completed with exit code 1.
Unhandled error: src/lib/util.test.ts#L359
Error: done() callback is deprecated, use promise instead ❯ src/lib/util.test.ts:359:7 ❯ src/lib/util.ts:428:7 This error originated in "src/lib/util.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
Unhandled error: src/lib/util.test.ts#L340
AssertionError: expected Error: done() callback is deprecated, use… to deeply equal null ❯ src/lib/util.test.ts:340:21 ❯ src/lib/util.ts:428:7 This error originated in "src/lib/util.test.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running.
build (22.x)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@v4, actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 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 (22.x): src/lib/util.test.ts#L1
'afterAll' is defined but never used
build (22.x): src/lib/util.test.ts#L1
'afterEach' is defined but never used
build (22.x): src/lib/util.test.ts#L1
'beforeEach' is defined but never used
build (22.x): e2e/map.spec.ts#L2
'LOAD_TIMEOUT' is defined but never used