Test environment
If you look at setup-jest.ts
,
what we're doing here is we're adding globals required by Angular. With the included jest-zone-patch
we also make sure Jest test methods run in Zone context. Then we initialize the Angular testing environment like normal.