Testing Infrastructure in Angular 22: Vitest, the unit-test Builder, jsdom and What to Test at Which Level
Angular 22's unit-test builder runs Vitest with isolation off, so state kept in a module can carry over between test files depending on the worker count, and a suite that is green locally turns red in CI. In this post we map the test levels for Bookstore's Angular client, set up the angular.json test target with setupFiles, providersFile and runnerConfig, measure jsdom against happy-dom, and run and debug single tests.
14 Nov 2026
·
14 min
·
11