Closed
Description
Is this a bug report?
Yes
Did you try recovering your dependencies?
Yes
(Write your answer here.)
Which terms did you search for in User Guide?
Sass support
(Write your answer here if relevant.)
Environment
node -v
:npm -v
:yarn --version
(if you use Yarn):npm ls react-scripts
(if you haven’t ejected):
Then, specify:
- Operating system:
- Browser and version (if relevant):
Steps to Reproduce
(Write your steps here:)
1: Update react-scripts to latest release
2: Import styles from 'component.module.scss' in component file
3: Import styles from 'component.module.scss' in component.test.js
Expected Behavior
(Write what you thought would happen.)
Classnames are imported for component file and test file correctly for comparison
see #3815
Actual Behavior
(Write what happened. Please add screenshots!)
Component imports classNames correctly, test file classnames are undefined
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)