Skip to content

Testing

We need to write tests in order to make sure we have caught all cases both in the nodejs parser, and the React Component. The testing framework is up and running, and each package has a directory named __tests__ which contain all test files.

Writing some initial testing that needs to be done:

Parser

We need to test each function of packages/parser/src/lib.js, as these are the core functions of our plugin

Term Component

We should try to test the pros (passing valid props, not passing some props, passing wrong values etc) to validate that it will render correctly each time