We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am getting the 'src/components/HelloComponent/Hello.scss: Unexpected token .'
import React from 'react'; import styles from './Hello.scss';
How to make jest test the scss?
The text was updated successfully, but these errors were encountered:
You can join the discussion in #5.
Sorry, something went wrong.
Cool! But don’t forget that testing classNames will not work.
className
The solution provided before not working. I ended up with:
var babelJest = require('babel-jest'); module.exports = { process: function (src, filename) { return babelJest.process(src.replace(/import(.*)from.*\.((less)|(scss)|(svg)).*;/gi, 'let $1 = {};'), filename); } };
This will replace the scss import and assign first regex group with {}
But is there a better solution?
No branches or pull requests
I am getting the 'src/components/HelloComponent/Hello.scss: Unexpected token .'
import React from 'react';
import styles from './Hello.scss';
How to make jest test the scss?
The text was updated successfully, but these errors were encountered: