DEV Community

Discussion on: Absolute paths in React using craco (feat. TypeScript and ts-jest)

Collapse
 
agnel profile image
Agnel Waghela

For jest, maybe you could try specifying in package.json like below:

"jest": {
  "moduleNameMapper": {
    "^@(.+)": "<rootDir>/src/$1"
  }
}
Enter fullscreen mode Exit fullscreen mode