DEV Community

Discussion on: Angular 11 - Setting up Jest

Collapse
 
meghanar121 profile image
Meghana Rajappa • Edited

I followed all the steps, i am getting below error:

zone-testing.js is needed for the async() test helper but could not be found.Please make sure that your environment includes zone.js/dist/zone-testing.js

Collapse
 
saluce65 profile image
saluce65

Change your setupJest.ts file to import 'jest-preset-angular/setup-jest';

Collapse
 
sutin1234 profile image
thinny

work for me. Thanks

Collapse
 
itsgratien profile image
gratien

Thank you! @saluce65

Collapse
 
mikel_hamer_50f46faf752f0 profile image
Mikel Hamer

I don't know who you are, but thank you