git.delta.rocks / unique-network / refs/commits / 20e47ec6bc5a

difftreelog

source

tests/README536 Bsourcehistory
1# Tests23## How to run451. Run `npm install`.62. Setup a test node. You can do it using `docker-compose up -d` in parent directory.73. Configure tests with env variables or by editing [configuration file](src/config.ts).84. Run `npm run test`.910## Don't run on the same node twice1112Some tests fail when ran on the same blockchain node twice. Either always use a new node or purge the existing one with `nft purge-chain --dev`. There is also [a script](../purge-running-node.sh) to purge and restart a node, started with docker-compose.