Testing
- Unit Tests
- Jest
- Testing Library https://testing-library.com/docs/queries/about#priority
- Integration/e2e Tests
- Other cool testing tools
Mocking
createMock(...)
from @testing-library/angular/jest-utilscreateSpyFromClass(...)
from jest-auto-spies
Angular
- ng-mocks
MockComponent(Component)
creates a mock of an Component. Good for testing individual components without needing to bootstrap all sub componentMockPipe(Pipe, value => JSON.stringify(value))
mock a pipe- ...
- Spectacular
- Spectator ngneat has other cool libraries for Angular and JS/TS too