[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
Current behavior
I'm trying to do an unit test using jest + angular.
But when I run unit test, test fail because ngx-permissions package it not reconigzed.
FAIL src/app/core/components/permissions/permissions.service.spec.ts
● Test suite failed to run
Cannot find module 'ngx-permissions' from 'src/app/core/components/permissions/permissions.service.spec.ts'
1 | import { TestBed } from '@angular/core/testing';
> 2 | import { NgxPermissionsService } from 'ngx-permissions';
| ^
3 |
4 | import { PermissionsService } from './permissions.service';
5 |
at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:306:11)
at Object. (src/app/core/components/permissions/permissions.service.spec.ts:2:1)
Expected behavior
Created Unit Test with Jest + Angular
Minimal reproduction of the problem with instructions
Create service with NgxPermissionsService in constructor
I'm submitting a...
Current behavior
I'm trying to do an unit test using jest + angular. But when I run unit test, test fail because ngx-permissions package it not reconigzed.
Expected behavior
Created Unit Test with Jest + Angular
Minimal reproduction of the problem with instructions
Create service with NgxPermissionsService in constructor
Import NgxPermissionsService
Create .spec from service, and try run unit test
});
Environment