angular-builders
angular-builders copied to clipboard
Use ts-jest mapper helper to map tsconfig paths to jest paths
trafficstars
Is your feature request related to a problem? Please describe.
Today if the user is using paths in tsconfig.json he has to define the mappings manually in jest.config.js.
Describe the solution you'd like
We can save the user the headache by using this approach for mapping tsconfig paths.
As the one who went through this headache there's a few things to bear in mind either way (I lack the experience and knowledge to say either way):
- You'll get an error if you implement the ts-jest helper but don't have path in
tsconfig.jsondue tocompilerOptions.pathsbeing undefined. - There's still a headache of putting paths in
tsconfig.jsonand having to repeat the custom paths intsconfig.app.json
Closing as implemented.
Whoops, wrongly closed...