I have defined path settings in my tsconfig.app.json file like this:
"paths": {
"@app/core": ["./src/app/core"]
}
Every time I run a test that includes import statements with relative paths, it throws the following error:
Cannot find module '@app/core' or its corresponding type declarations
import {NotificationService} from "@app/core"
What steps should I take to configure my jest.config.js file to resolve this issue?
I attempted to set it up as follows:
moduleNameMapper: {
"@app/core": "<rootDir>/src/app/core"
}