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

Jest can't resolve routes correctly #37

Merged
merged 1 commit into from
Mar 16, 2019
Merged

Jest can't resolve routes correctly #37

merged 1 commit into from
Mar 16, 2019

Conversation

ericclemmons
Copy link
Owner

This is incredibly hard to troubleshoot, but it goes something like this:

  1. project/node_modules/polydev/src/middleware/router/handle.production.js attempts to require("project/example/routes/login/index.ts")
  2. Jest does a bunch of resolution stuff, and ends up loading project/index.js.
  3. Just incorrectly stores the module key as user:project/node_modules/polydev/src/middleware/router/handle.production.js:, because it can't resolve the absolute path or mock module location/meta.

@ericclemmons
Copy link
Owner Author

@ericclemmons ericclemmons merged commit 3c2e995 into master Mar 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant