Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 571 Bytes

05_testing.md

File metadata and controls

18 lines (13 loc) · 571 Bytes

Testing

The module is automatically tested against the whole pouchdb test suite (+/- 1650 tests) before any PR merge or release.

You can run the tests after connecting to the development container.

# Run the tests with pouchdb-nextjs-router
npm run test

# Run the tests with pouchdb-express-router
npm run test:express

# Run the tests with a custom server
# useful if you want to test against a custom dev server on your host
# replace the COUCH_HOST url in the example below
COUCH_HOST=http://host.docker.internal:3000/api/pouchdb npm run test:custom