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

moduleNameMapper & typescript paths with fallbacks #8273

Closed
j opened this issue Apr 4, 2019 · 2 comments
Closed

moduleNameMapper & typescript paths with fallbacks #8273

j opened this issue Apr 4, 2019 · 2 comments

Comments

@j
Copy link

j commented Apr 4, 2019

TypeScript's "paths" option allows for fallback paths, that way I can use @org/* packages in a mono-repo and not have to have weird prefxing to map paths.

I have two workspace directories, packages/* and services/*, and every package uses the same @org. TypeScript allows me to do:

"paths": {
    "@dapperprints/*": ["packages/*/src", "services/*/src"]
}

Is this possible with jest & ts-jest?

@jeysal
Copy link
Contributor

jeysal commented Apr 4, 2019

#2702 (comment) might help.

Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@jeysal jeysal closed this as completed Apr 4, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants