Skip to content

example how to do component testing with jest and swc

Notifications You must be signed in to change notification settings

sod/angular-jest-swc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

example how to do component testing with jest and swc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published