-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage along with Jest #10
Comments
@StefanoSega Wondering if you ever resolved this? I'm having a similar issue with my project! |
unfortunately no, I gave up and removed
|
@StefanoSega, I managed to work around this issue with Jest
Cheers! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using successfully
classnames-loader
in my project but actually I've a problem when using it along with Jest, as I'm not able to run the loader on the files to test when I load them, and so the function statement breaks:something like this breaks because
styles
is not a classnames-loader function.To mock
.css
files in Jest I usedidentity-obj-proxy
:this works fine when I use the styles object properties directly because mocks all the css classes into a single object, but of course it fails when is used as a function.
How I can configure Jest to run
classnames-loader
on the files that I need to test?The text was updated successfully, but these errors were encountered: