How to get context when you are testing a module developed in eCommerce #367
              
                Unanswered
              
          
                  
                    
                      rubenprz21
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         Hi, can you mention the steps you performed for module creation? You can definitely test the module in browser unless I mis understood your question. Please feel free to connect we can discuss on this. Regards,  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I am developing a new module. When I start the module to be able to see it on localhost, there is no way to see it because it does not find the context that is called. How can I test a module without having access to the context? Should I create a mock where the context is generated there in a fictitious way? I created a mock of the module and I am getting this error: 'payment-mock' threw exception TypeError: Cannot read properties of undefined (reading 'bind') in PaymentFinalization in TestModule in SafeRenderModule in ComponentWithContext in div in div in Container in DefaultContainer in SafeRenderModule in ComponentWithContext in main in DefaultPageContainer in SafeRenderModule in ComponentWithContext Do you need more information? Thank you
Beta Was this translation helpful? Give feedback.
All reactions