it's good to mention also one more thing: if you use a tsconfig.json -> compilerOptions.baseUrl config for absolute paths feature, you have to add:
tsconfig.json
compilerOptions.baseUrl
moduleDirectories: ['node_modules', 'src']
to your jest.config.js
jest.config.js
source: stackoverflow.com/a/51174924/3999031
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
it's good to mention also one more thing: if you use a
tsconfig.json
->compilerOptions.baseUrl
config for absolute paths feature, you have to add:to your
jest.config.js
source: stackoverflow.com/a/51174924/3999031