Author: Dennis O'Keeffe
Testing is done using Mocha and Chai for evaluation and uses Enzyme for rendering out React components to evaulate state for the React app at any given time and Puppeteer to evaulate UI testing.
The app itself can be developed using both Behaviour Driven Development and Test Drive Development.
We use Mocha as the main framework to layout the test suites and test specs themselves, and to evaluate the individual test specs, we use the Chai library.
To incorporate BDD in this scenariom you can use Mocha's
it function to also scaffold the pending tests in advance that will result in "pass" or "fail" but be ready for when you start writing the evaluation and assertion expecations: