fauna-labs / serverless-fauna

MIT No Attribution
18 stars 3 forks source link

Fix deploy command tests #25

Closed macmv closed 1 year ago

macmv commented 2 years ago

Fixes the tests in DeployCommand.test.js, as well as a small fix to the membership adapter. The problem with the membership adapter was found from these tests, so I'm including it here.

To run these tests, first start a local container:

docker run --rm --name faunadb-sls-test -p 8444:8443 fauna/faunadb

Then run the deploy command test:

export FAUNA_DOMAIN=localhost
export FAUNA_PORT=8444
export FAUNA_SCHEME=http
export FAUNA_ROOT_KEY=secret
npm test DeployCommand