Fast JiT compiler for Angular unit testing that reuses compiled results across specs to reduce execution time. Current stable version 0.3.0, compatible with Angular 4.2+. Unlike default Angular TestingCompiler which compiles modules per spec, this compiler outlives the default and caches compiled components. Ships TypeScript types. Low release cadence; last release in 2017. Useful for Angular CLI projects (edit src/test.ts). Few alternatives exist for this niche optimization.
npm install ngx-zombie-compilerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures TestBed to use the zombie compiler, reusing compiled results across specs.
Upgrade to ngx-zombie-compiler@0.3.0 and ensure @angular/core and @angular/compiler are >=4.2.0.
Consider testing with Angular 5+; if compilation fails, look for alternatives or fork.
Call getTestBed().configureCompiler({ providers: ZOMBIE_COMPILER_PROVIDERS }) inside each beforeEach() or in a setup function per test suite.For AOT, use Angular's default TestBed or @angular/platform-browser-dynamic testing utilities.
npm install ngx-zombie-compiler --save-dev
Ensure @angular/core is version 4.x.x or later. For Angular 2.x, use deprecated methods.
npm install @angular/compiler@^4.2.0