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.
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.