Context
We are currently using Jest, but since the project builds with Vite/Rollup and uses modern ESM, Jest requires complex Babel transforms (e.g. ts-jest).
Task
- Install
vitest.
- Replace
jest.config.js with vitest.config.ts.
- Update all
import { jest } from '@jest/globals' to use vi from vitest.
- Ensure the CI pipeline is updated to run
vitest --run.
Context
We are currently using Jest, but since the project builds with Vite/Rollup and uses modern ESM, Jest requires complex Babel transforms (e.g.
ts-jest).Task
vitest.jest.config.jswithvitest.config.ts.import { jest } from '@jest/globals'to usevifromvitest.vitest --run.