We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just got everything working and am now getting errors that it can't find a couple of modules/files during my tests:
Cannot find module 'testing/api-http-service.stub' from 'user.service.spec.ts' Cannot find module 'testing/user-service.stub' from 'register-form.component.spec.ts'
I've got a folder inside /src called testing and import stubs for my tests like:
/src
testing
import { RouterStub } from 'testing/router.stub';
Was trying to figure out why and I see jest-preset only whitelists app and environments like:
"moduleNameMapper": { "app/(.*)": "<rootDir>/src/app/$1", "environments/(.*)": "<rootDir>/src/environments/$1" },
Angular CLI allows anything inside src
src
The text was updated successfully, but these errors were encountered:
This seems to work:
"moduleNameMapper": { "(.*)": "<rootDir>/src/$1" },
Sorry, something went wrong.
fix: allow empty test bodies (thymikee#5)
f4cfb55
No branches or pull requests
Just got everything working and am now getting errors that it can't find a couple of modules/files during my tests:
Cannot find module 'testing/api-http-service.stub' from 'user.service.spec.ts'
Cannot find module 'testing/user-service.stub' from 'register-form.component.spec.ts'
I've got a folder inside
/src
calledtesting
and import stubs for my tests like:Was trying to figure out why and I see jest-preset only whitelists app and environments like:
Angular CLI allows anything inside
src
The text was updated successfully, but these errors were encountered: