Speed up ts-jest tests 43% by skipping type checking during runs
How to profile Jest tests with Node DevTools to find performance issues and reduce test times by 90%
How to configure Jest to work with ESM-only libraries like jose, including the necessary transformer and TypeScript settings.
Benchmarking Vitest vs Jest: performance results from running 216 tests across 33 files using hyperfine.
A practical guide to migrating your test suite from Jest to Vitest, including common pitfalls, solutions, and observations from a real-world migration.
Use only one `await` for each expected delay in async React Testing Library tests.
Local state updates are asynchronous. Re-renders can delay elements appearing in the DOM.
Long renders can delay elements appearing in the DOM.
Use jest-extended matchers to make more accurate test assertions.
Jest hoists `jest.mock`, causing initialisation errors; fix by declaring mocks early or using anonymous functions in mock factories.