442 B
442 B
Testing
Run the unit and component test suite with:
npm test
For coverage reports:
npm run test:coverage
Test utilities
src/testUtils/mockDb.tsprovides a lightweightcreateMockDbfactory withMockTablehelpers that mimic Dexie tables used in the app.src/testUtils/stubDownloads.tsstubsdocument.createElementandURL.createObjectURL/revokeObjectURLso download paths can be exercised in tests.