DEV Community

Discussion on: Mocking Components in Angular

Collapse
sanidz profile image
sanidz • Edited

import { MockComponent, MockDirective } from 'ng-mocks';

declarations: [
MockComponent(HeaderComponent)
]

++ mock services

import { mock } from 'ts-mockito';

  providers: [
    { provide: Store, useValue: mock(Store) }
  ]
Enter fullscreen mode Exit fullscreen mode