The test code is located within the same directory as each component, inside a
1 2 3 4
The testing library being used is Jest.
You can run those tests with:
npm run test
At the end of the test's execution, you will see the code coverage for the Preact components in our codebase.
If tests require utility modules, create them in a
utilities folder under the
__tests__ folder. Jest is configured to not treat the
utilities folder as a test suite.