mirror of
https://github.com/msakowski/obsidian-library-linker.git
synced 2026-07-22 12:30:30 +00:00
Replace Jest with Vitest to drop transitive dependencies flagged by Snyk (@babel/core, ws@8.20.1, inflight); the lockfile shrinks from 745 to 568 packages. The 508-test suite and its wall-clock time are unchanged. - Remove jest, jest-environment-jsdom, @swc/jest, @swc/core, @types/jest; add vitest + jsdom - Add vitest.config.ts with resolve.alias mirroring the old moduleNameMapper; enable globals and the jsdom environment - Convert all jest.* usages to vi.*; import Mock/Mocked/MockInstance types from vitest; @jest-environment -> @vitest-environment pragmas - BibleTextFetcher curl fallback: lazy require() -> lazy import() so the module is mockable under Vitest (behaviour unchanged, desktop-only) - Point CI, docs, and scripts at pnpm test:vitest |
||
|---|---|---|
| .. | ||
| ISSUE_TEMPLATE | ||
| workflows | ||
| dependabot.yml | ||