Add unit tests for components
A .test.js
file should be included with each component, in which:
-
react-test-renderer
can be used for asserting on how components 'look' (as json) with different props (using Jest's snapshots). -
enzyme
can be used for simulating user interaction on a shallowly rendered component and testing effects.