-
Notifications
You must be signed in to change notification settings - Fork 67
[Replacement]: Jest #483
Copy link
Copy link
Open
Description
Package to replace
vitest
Suggested replacement(s)
vitest
Manifest type
preferred (lighter or more modern alternative package)
Rationale
Vitest is a faster, modern alternative to Jest, designed for ESM-first environments and part of void zero ecossytem of tools.
Key advantages:
- Faster
- Native support for ESM, TypeScript, and modern frontend tooling
- Seamless integration with Vite projects (shared config, no extra setup)
- Improved developer experience with hot reload for tests
- Jest-compatible API (describe, it, expect), making migratio easy
- Browser mode tests
Availability
No response
Code example (optional)
/**
* Before (Jest)
*/
// Jest uses globals
import { sum } from './sum'
describe('sum', () => {
it('adds numbers', () => {
expect(sum(1, 2)).toBe(3)
})
})
/**
* After (Vitest)
*/
import { describe, it, expect } from 'vitest'
import { sum } from './sum'
describe('sum', () => {
it('adds numbers', () => {
expect(sum(1, 2)).toBe(3)
})
})Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels