Nx Jest to Vitest Migration: A Per-Library Guide for Backend Code
Migrate Nx backend libraries from Jest to Vitest one at a time: @nx/vite setup, mocking, decorator metadata, ESM issues, pools and cache correctness.
17 min read
Tag
Migrate Nx backend libraries from Jest to Vitest one at a time: @nx/vite setup, mocking, decorator metadata, ESM issues, pools and cache correctness.
17 min read
Learn how Nx inferred tasks and createNodes plugins replace project.json targets, how merging works, and how to migrate incrementally without breaking caching.
17 min read
Learn how Test.createTestingModule builds a real DI graph, when to use overrideProvider at I/O boundaries, and how to structure unit and integration tests in Jest.
13 min read
Learn when NestJS unit mocks are enough, when to run integration tests against a real test database, and how to set up isolation, lifecycle and CI.
18 min read
Learn how the Nx Atomizer splits Jest and Playwright suites into per-file tasks, what the cache keys on, and when task parallelism actually pays off.
13 min read
Learn how the Nx Atomizer splits Jest and Vitest targets per spec file, how to configure it for CI, and when per-file tasks cost more than they save.
14 min read
Learn how the Nx Atomizer splits backend test suites into per-file tasks, what isolation and cache inputs it needs, and when the overhead isn't worth it.
13 min read
Learn how Nx atomizer tests split Jest and Vitest suites into per-file CI targets, when that cuts CI time, and how to audit test isolation first.
14 min read
Compare node:test, Vitest and Jest for backend API testing: TypeScript execution, ESM, isolation, mocking, DB parallelism, migration and cost.
17 min read
Learn how Nx detects flaky tests by computation hash, where retries belong, and how to quarantine, track and fix flaky backend tests in a monorepo.
18 min read