Skip to content

Commit d2ed573

Browse files
committed
refactor: migrate test runner from bun:test to vitest
1 parent a3396d5 commit d2ed573

350 files changed

Lines changed: 5959 additions & 3124 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ env:
2626
# binary is only smoke-tested (--help) and never shipped, so any non-empty
2727
# value works; tests tolerate the dummy via test/preload.ts.
2828
SENTRY_CLIENT_ID: ${{ vars.SENTRY_CLIENT_ID || 'ci-fork-pr-dummy' }}
29+
# Disable io_uring in libuv — GitHub Actions runners may use kernels that
30+
# don't fully support it, causing SIGABRT in Node.js processes.
31+
# See: https://github.com/actions/runner-images/issues/13602
32+
UV_USE_IO_URING: "0"
2933

3034
jobs:
3135
changes:
@@ -211,6 +215,9 @@ jobs:
211215
with:
212216
bun-version: "1.3.13"
213217
- uses: pnpm/action-setup@v4
218+
- uses: actions/setup-node@v6
219+
with:
220+
node-version: "24"
214221
- uses: actions/cache@v5
215222
id: cache
216223
with:
@@ -636,7 +643,7 @@ jobs:
636643
- uses: pnpm/action-setup@v4
637644
- uses: actions/setup-node@v6
638645
with:
639-
node-version: "22"
646+
node-version: "24"
640647
- uses: actions/cache@v5
641648
id: cache
642649
with:
@@ -676,9 +683,6 @@ jobs:
676683
with:
677684
bun-version: "1.3.13"
678685
- uses: pnpm/action-setup@v4
679-
- uses: actions/setup-node@v6
680-
with:
681-
node-version: ${{ matrix.node }}
682686
- uses: actions/cache@v5
683687
id: cache
684688
with:

.lore.md

Lines changed: 18 additions & 33 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"@types/qrcode-terminal": "^0.12.2",
2727
"@types/react": "^19.2.14",
2828
"@types/semver": "^7.7.1",
29+
"@vitest/coverage-v8": "^4.1.7",
2930
"binpunch": "^1.0.0",
3031
"chalk": "^5.6.2",
3132
"cli-highlight": "^2.1.11",
@@ -51,6 +52,7 @@
5152
"typescript": "^5",
5253
"ultracite": "6.3.10",
5354
"uuidv7": "^1.1.0",
55+
"vitest": "^4.1.7",
5456
"wrap-ansi": "^10.0.0",
5557
"zod": "^3.24.0"
5658
},
@@ -96,10 +98,10 @@
9698
"lint": "biome check --no-errors-on-unmatched --max-diagnostics=none ./",
9799
"lint:fix": "biome check --write --no-errors-on-unmatched --max-diagnostics=none ./",
98100
"test": "bun run test:unit",
99-
"test:unit": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 --isolate --parallel test/lib test/commands test/types --coverage --coverage-reporter=lcov",
100-
"test:changed": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 --isolate --changed",
101-
"test:e2e": "bun run generate:docs && bun run generate:sdk && bun test --timeout 15000 test/e2e",
102-
"test:init-eval": "bun test test/init-eval --timeout 600000 --concurrency 6",
101+
"test:unit": "bun run generate:docs && bun run generate:sdk && vitest run test/lib test/commands test/types --coverage",
102+
"test:changed": "bun run generate:docs && bun run generate:sdk && vitest run --changed",
103+
"test:e2e": "bun run generate:docs && bun run generate:sdk && vitest run test/e2e",
104+
"test:init-eval": "vitest run test/init-eval --testTimeout 600000",
103105
"generate:parser": "bun run script/generate-parser.ts",
104106
"generate:sdk": "bun run script/generate-sdk.ts",
105107
"generate:skill": "bun run script/generate-skill.ts",

0 commit comments

Comments
 (0)