Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 942 Bytes

TESTING_README.md

File metadata and controls

29 lines (23 loc) · 942 Bytes

Testing Info

Run all jest test: npm test

Test File Naming

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