Testing BookNest

BookNest now has five Jest 62,362 files and two end-to-end tests. The first full npm 2,036 test also picked up e2e/cart.test.js, which runs only under Detox 12,028 , hence the e2e entry in jest.config.js. With coverage limited to the logic folders:

Running the unit and component tests with coverageShell
npm test -- --silent --coverage --collectCoverageFrom='src/{store,api,i18n}/*.ts'
Output
...
  books.ts  |    92.3 |      100 |      80 |      90 | 18
...
  index.ts  |   72.72 |       50 |     100 |   72.72 | 26-28
 store      |     100 |      100 |     100 |     100 |
...
Tests:       11 passed, 11 total
Time:        40.05 s

Read the report for what is missing. books.ts line 18 is toggleFavorite(), which no test sends; i18n/index.ts lines 26-28 are the right-to-left switch; and auth.ts (Authentication) has no tests at all, which makes it the next file to cover, because a bug there locks readers out. Run npm test on every push and the Maestro flow nightly or before each release; its clearState: true launch means a cart left over from the last run can never make it pass.