@epdomains/passport-database-client
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

database-client

Running the Ceramic integration tests locally

Start up the Ceramic daemon in another thread

yarn run ceramic

Run the integration tests

yarn run test:integration

Note: Use the CERAMIC_CLIENT_URL env variable (like export CERAMIC_CLIENT_URL=http://127.0.0.1:7007) to change the ceramic client URL for the integration tests if required.

Running the Ceramic integration tests in Docker

IMPORTANT this will overwrite your schemas/scripts/create-model.json and schemas/scripts/publish-model.json files! Make a backup of these files!

docker-compose up -d

Tests are flaky the first time, possibly due to connection issues with the Ceramic node. If tests fail due to an error like request to http://localhost:7007/api/v0/streams failed, reason: connect ECONNREFUSED 127.0.0.1:7007, try running docker-compose up -d again to re-run the tests.

Readme

Keywords

none

Package Sidebar

Install

npm i @epdomains/passport-database-client

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

88.9 kB

Total Files

24

Last publish

Collaborators

  • hwonder