Run all jest test: npm test
Test files should be named according to the following convention: .test.js. ex. If you are testing App.jsx the test file should be called: App.test.js.
Test files should be in the directory as the file they are testing or alternatively they can be kept in a directory called 'test'.
An example of a file structure with tests
client
|-- components
| |-- App.jsx
| |-- App.test.js
| |-- galleryComponents
| | |-- __tests__
| | | | -- ThumbNailList.test.js
| | | | -- Gallery.test.js
| | |-- ThumbNailList.jsx
| | |-- Gallery.jsx
Testing Documentation