transfer-server-unit-tests

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i transfer-server-unit-tests

Weekly Downloads

11

Version

1.0.0

License

MIT

Unpacked Size

582 kB

Total Files

54

Last publish

Collaborators

  • msfeldstein