Skip to main content

Testing

Mocking

Angular

  • ng-mocks
    • MockComponent(Component) creates a mock of an Component. Good for testing individual components without needing to bootstrap all sub component
    • MockPipe(Pipe, value => JSON.stringify(value)) mock a pipe
    • ...
  • Spectacular
  • Spectator ngneat has other cool libraries for Angular and JS/TS too