Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 781 Bytes

testing.md

File metadata and controls

22 lines (14 loc) · 781 Bytes

Testing

Linting (with eslint)

Want to check if your code is formatted consistently + pick up on any syntax errors:

./node_modules/.bin/eslint "src/**/*.js"

Jest Snapshots

Run npm test to run a test add -- --watch to run it in developer mode.

To run an individual Jest test:

  • Run jest path/to/test.js if you have Jest installed globally
  • Run node_modules/.bin/jest path/to/test.js to use the projects Jest installation

Tests should be placed in their related parents folder to keep consistency, i.e components/__tests__ or containers/__tests__