I am using ng-mocks this way -
import { MockDirective, MockComponent, ngMocks } from 'ng-mocks';
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
MockComponent(ComponentName),
],
schemas: [ NO_ERRORS_SCHEMA ]
})
.compileComponents();
}));
I am seeing the below error -
Failed: ng-mocks is not in JIT mode and cannot resolve declarations