Module scss during component testing #14801
              
                Unanswered
              
          
                  
                    
                      bryansantamaria
                    
                  
                
                  asked this question in
                Component Testing
              
            Replies: 1 comment
-
| Try to add the following to your cypress.json: Seems to be similar to this issue: #3875 | 
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.
-
Hello, I have a next.js application and I've done all the configuration for testing components with cypress.
I have succeeded if I only include the react component.
index.jsx
test.spec.js
As soon as I include a modular scss file. The loader fails.
button.module.scss
import in component
import Styles from './button.module.scss'This is the error message that I receive:
How can I get this to work?
Any help or tips are greatly appreciated! :)
Beta Was this translation helpful? Give feedback.
All reactions