All our tests are all located inside test.js.
They can be run with:
cd web
npm test
The dynamic website tests also uses Mocha just like the tests for OurBigBook CLI and OurBigBook Library, so similar usage patterns apply, e.g. to run just a single test:
npm test -- -g 'substring of test title'
or to show database queries being done in the tests:
DEBUG='*:sql:*' npm test
The tests include two broad classes of tests:


  1. OurBigBook Web development
  2. OurBigBook Web
  3. OurBigBook Project