A repo with examples and exercises for Angular unit-testing techniques + CI/CD with GitHub Actions.
- Testing Components with I/O and Change Detection
- Testing Components with (Async) Service dependencies
- Testing Routed Components
- Testing Services
- Testing DOM Interaction
- Testing HTTP Requests
- Testing Reactive forms
- Testing Http Interceptors
- Testing Route Guards
- Testing Directives
- Components with mock Services and Spies
- Spies to observe function calls, produce fake errors, mock functions
- Isolated Unit Tests
- Shallow Integration Tests
- Deep Integration Tests
- Continuous Integration/Continuous Delivery pipeline with GitHub Actions
- Deploy to Github Pages using GitHub Actions
This project was generated with Angular CLI version 10.0.5.
Run ng test
to execute the unit tests via Karma.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.