From c8936766107b20701eafd70d58b68fccf233489d Mon Sep 17 00:00:00 2001 From: willclarktech Date: Wed, 14 Oct 2020 12:29:22 +0200 Subject: [PATCH] faucet-client: Add section about tests to README --- packages/faucet-client/README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/packages/faucet-client/README.md b/packages/faucet-client/README.md index a0c481ec..1f041488 100644 --- a/packages/faucet-client/README.md +++ b/packages/faucet-client/README.md @@ -2,6 +2,33 @@ [![npm version](https://img.shields.io/npm/v/@cosmjs/faucet-client.svg)](https://www.npmjs.com/package/@cosmjs/faucet-client) +## Running the tests + +First of all you will need an instance of wasmd running. From the root directory of this repository: + +```sh +./scripts/wasmd/start.sh && ./scripts/wasmd/init.sh +``` + +You will also need a faucet. From the root directory of this repository: + +```sh +cd packages/faucet +yarn start-dev +``` + +The tests need to be told you are running the faucet via an environmental variable: + +```sh +export FAUCET_ENABLED=1 +``` + +Finally run the tests from this directory: + +```sh +yarn test +``` + ## License This package is part of the cosmjs repository, licensed under the Apache License