Closed exaucae closed 3 years ago
May be something wrong with paths. Need to reproduce somehow. Take as a base example app named above
(dangerous mode) in this repo example folder. Add minimal changes that match your requirements. Make a commit and push to reproduce.
You were right. Changed '^@/shared/(.*)': '../../shared/$1'
to '^@/shared/(.*)': '<rootDir>/../../shared/$1'
in moduleNameMapper of jest.config.json
.
Works fine now.
Hello @oklas,
I have trouble running react tests with dangerous aliased imports . Already saw related issues in the repo. I doubt we share the same context.
Here is the error:
Below, my config files:
dependencies