1.0.0 • Published 5 years ago
transfer-server-unit-tests v1.0.0
transfer-server-validator
Test suite for validating services support for SEP24.
Running
Via CLI
$ yarn
$ DOMAIN=https://stellar-anchor-server.herokuapp.com npx jest
Running a specific test
DOMAIN=https://localhost:8000 npx jest -I -i cases/deposit.test.js
Showing the browser for interactive tests
Normally everything runs headless, but if you want to watch as the test walks through
your interactive flow, set the SHOW_BROWSER=1
environment variable before running the command.
Using a self-signed certificate
If you're developing locally and need to use a self-signed certificate, pass the env var NODE_TLS_REJECT_UNAUTHORIZED="0"
in order to avoid the request to https://localhost:8000/.well-known/stellar.toml failed, reason: self signed certificate
error.
Via Docker
$ docker build -t transfer-server-validator .
$ docker run -p 3000:3000 transfer-server-validator
### Running locally
Run the server
$ yarn $ yarn start
Run the client
$ cd client $ yarn $ yarn start
### Automated monitoring
TBD
1.0.0
5 years ago