Can't find module in unit tests #632
              
                
                  
                  
                    Answered
                  
                  by
                    enisdenjo
                  
              
          
                  
                    
                      quentinncl
                    
                  
                
                  asked this question in
                Q&A
              
            -
| 
         I'm using this package with  But when I'm running my unit tests I have the following error :  I tried : 
 I had to comme back to version 5.16.2 and in this case it works. Is there anyone had this error ?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            enisdenjo
          
      
      
        Mar 20, 2025 
      
    
    Replies: 1 comment 1 reply
-
| 
         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?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        enisdenjo
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
You're mapping to the an incorrect location.
BTW, why do you even need the module name mapper?