Skip to content

Can't find module in unit tests #632

Answered by enisdenjo
quentinncl asked this question in Q&A
Discussion options

You must be logged in to vote

You're mapping to the an incorrect location.

- "^graphql-ws$": "<rootDir>/node_modules/graphql-ws/use/ws"
+ "^graphql-ws$": "<rootDir>/node_modules/graphql-ws/dist/use/ws"

BTW, why do you even need the module name mapper?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quentinncl
Comment options

Answer selected by enisdenjo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #631 on March 20, 2025 14:40.