Skip to content

Test Framework ‐ Jest React Testing Framework

Harsh Deep edited this page Jun 2, 2024 · 10 revisions

The project follows the industry standards with Jest for component testing which is paired with React Testing Library for nice UI selectors that work with React. The tests are run on the CI before merge, and it's a good idea to have new tests for any new functionality we add.

NewEPubModal.test.js is a good example to look at if you're starting with test cases. It has an example of mocking, varying props, selectors and checking for UI components. Originally introduced in PR #802.

Here are a few helpful links for learn more:

Clone this wiki locally