This is a short introduction on how to setup Jest for an Angular project. The practical examples can be found in this repository: https://github.com/4kochi/angular-jest
mocking, code-coverage, snapshots) ❖ Fast (jsdom + Cache + parallelization) ❖ Minimal config ❖ Readable error and exception log ❖ Support for many frontend frameworks ❖ Up to date documentation ❖ IDE support (Webstorm + VS Code)
Generates snapshot files ❖ On subsequent test runs the result is compared to the snapshot ❖ Snapshots are committed ❖ Also inline snapshots are possible
progress ❖ start / master -> Angular Todo App with karma ❖ add_jest -> Add jest to project and make the tests running ❖ rewrite_tests -> Rewrite the tests in jest style
CLI implementing the monorepo-style development“ ❖ Includes schematics for jest / cypress out of the box ❖ Can lint / test / build only the parts of the app that has been changed