docbrown/docs/tests/preact-tests.md
rhymes 9210f6793b Improvements on dev docs (#2616)
* Correct installation documentation

* Add stylized titles

* Add some changes to the getting started documentation

* Add changes for the backend guide

* Add changes for the design guide

* Add testing / Q&A guide improvements

* Minor fixes to contributing docs

* More improvements to the general doc

* Improvements for frontend guide
2019-04-29 18:54:29 -04:00

523 B

title
Preact Tests

Preact Tests

The test code is located within the same directory as each component, inside a __tests__ directory.

$ tree app/javascript/article-form -L 1
app/javascript/article-form
├── __tests__
└── articleForm.jsx

The testing library being used is Jest.

You can run those tests with:

npm run test

or

yarn test

At the end of the tests execution you will see the code coverage for the Preact components tests.