Skip to content

Commit 9ca8407

Browse files
committed
Replace Jest + ts-jest with Vitest
- Remove jest, ts-jest, @types/jest; add vitest - Move test config into vite.config.ts, delete jest.config.js - Replace jest.setTimeout/jasmine blocks with per-test timeout args - Replace JEST_WORKER_ID with VITEST_POOL_ID for Node-only tests - Add test/vitest-globals.d.ts for global type definitions - Update .npmignore, CHANGELOG.md
1 parent c903169 commit 9ca8407

10 files changed

Lines changed: 1601 additions & 7176 deletions

File tree

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ coverage/
1212
.rts2*
1313

1414
karma.conf.js
15-
jest.config.js
15+
vite.config.ts
1616
tsconfig.json
1717
tslint.json
1818
eslint.config.mjs

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
- Replace bili/rollup build with dual CJS + ESM tsc output
88
- Upgrade node-forge 0.10.0 → 1.3.x
99
- Upgrade bson 4 → 7, yaml 1 → 2, buffer 5 → 6
10-
- Upgrade Jest 24 → 30, Prettier 2 → 3
10+
- Replace Jest + ts-jest with Vitest (native TypeScript support via Vite)
11+
- Upgrade Prettier 2 → 3
1112
- Replace TSLint (deprecated) with ESLint 9 flat config
12-
- Remove Karma browser test runner (deprecated since Apr 2023, no longer maintained; all crypto logic uses node-forge which is pure JS — Jest covers all code paths)
13+
- Remove Karma browser test runner (deprecated since Apr 2023, no longer maintained; all crypto logic uses node-forge which is pure JS — Vitest covers all code paths)
1314
- Update GitHub Actions to v4, Node 22

jest.config.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)