Skip to content

Instantly share code, notes, and snippets.

@KVeitch
Last active October 16, 2019 18:22
Show Gist options
  • Save KVeitch/d2c2bba76ae0f0d15186e93b1495b3c8 to your computer and use it in GitHub Desktop.
Save KVeitch/d2c2bba76ae0f0d15186e93b1495b3c8 to your computer and use it in GitHub Desktop.
IdeaBox Checklist:

Idea-Box like App

gist with code

  • 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment