Skip to content

Instantly share code, notes, and snippets.

@pahund
Created May 27, 2017 16:53
Show Gist options
  • Save pahund/3f70d9656eb756afeb698836a47e1b35 to your computer and use it in GitHub Desktop.
Save pahund/3f70d9656eb756afeb698836a47e1b35 to your computer and use it in GitHub Desktop.
Using “setupTestFrameworkScriptFile” in package.json
"jest": {
"setupTestFrameworkScriptFile": "<rootDir>/test/setup.js",
"moduleNameMapper": {
"\\.scss$": "<rootDir>/test/styleMock.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment