Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 519 Bytes

README.md

File metadata and controls

15 lines (11 loc) · 519 Bytes

Example how angular can be tested with swc+jest instead karma+webpack

cd test-app
npm install
npm run test # run tests via karma 
npm run test-with-jest # run tests via jest 

or press play in your IDE of choice on an it function in the spec file, as jest can run spec isolated.

jest-screenshot.png

Note: The jest example doesn't use zone.js as I don't use zone.js. If you need that, look at https://github.com/thymikee/jest-preset-angular how to get zone support into jest.