Skip to content

Instantly share code, notes, and snippets.

@pahund
Last active May 25, 2017 11:07
Show Gist options
  • Save pahund/3e16c99357cb5cefbb6ef3baabebb6ca to your computer and use it in GitHub Desktop.
Save pahund/3e16c99357cb5cefbb6ef3baabebb6ca to your computer and use it in GitHub Desktop.
Setting up a Jest mock for React components styled with Sass
"jest": {
"moduleNameMapper": {
"\\.scss$": "<rootDir>/test/styleMock.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment