-
Create a React App
-
npx create-react-app NAMEOFYOURAP
-
cd NAMEOFYOURAPP
-
npm install
-
-
Install Enzyme testing
-
npm i enzyme -D
-
npm install enzyme-adapter-react-16 -D
-
touch src/setupTests.js
- in setupTests.js add
import { configure } from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; configure({ adapter: new Adapter() });
-
-
Install snapshot testing
-
npm install enzyme-to-json -D
- modify package.json add
"jest": { "snapshotSerializers": [ "enzyme-to-json/serializer" ] }
-
-
Mars
-
Jupiter
-
Saturn
-
Uranus
-
Neptune
-
Comet Haley
Last active
October 16, 2019 18:22
-
-
Save KVeitch/d2c2bba76ae0f0d15186e93b1495b3c8 to your computer and use it in GitHub Desktop.
IdeaBox Checklist:
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment