Last active
August 1, 2018 10:14
-
-
Save ollelauribostrom/78d490b0ebcffb879e9425aad7e6cdfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yarn add jest-enzyme --dev | |
# OR | |
npm install jest-enzyme --save-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"jest": { | |
"setupTestFrameworkScriptFile": "./node_modules/jest-enzyme/lib/index.js" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// If you are using TypeScript, import typings in your test files by doing | |
import 'jest-enzyme'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment