Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ts-jest mapper helper to map tsconfig paths to jest paths #410

Open
just-jeb opened this issue Jul 25, 2019 · 3 comments
Open

Use ts-jest mapper helper to map tsconfig paths to jest paths #410

just-jeb opened this issue Jul 25, 2019 · 3 comments

Comments

@just-jeb
Copy link
Owner

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.

@AdditionAddict
Copy link

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):

  1. You'll get an error if you implement the ts-jest helper but don't have path in tsconfig.json due to compilerOptions.paths being undefined.
  2. There's still a headache of putting paths in tsconfig.json and having to repeat the custom paths in tsconfig.app.json

@just-jeb just-jeb pinned this issue Jun 9, 2022
@arturovt
Copy link
Collaborator

Closing as implemented.

@arturovt
Copy link
Collaborator

Whoops, wrongly closed...

@arturovt arturovt reopened this Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants