Files
Tommy Verrall f95e9a7d37 Implement base line for tests on the validator ts client
- This will need to be separated and configured accordingly 
- This was a quick spin up, using jest as a library to implement some coverage
- Further things to be refined - mocks, more coverage, better configuration, clean up methods, improve env vars
2022-01-06 10:01:08 +00:00
..
2021-12-16 15:35:30 +00:00
2021-03-24 11:49:58 +00:00
2021-03-09 11:32:51 +00:00
2021-12-16 15:35:30 +00:00
2021-03-24 11:49:58 +00:00

Nym Validator Client

A TypeScript client for interacting with CosmWasm smart contracts in Nym validators.

Running tests

The tests will be separated into three categories: unit, integration and mock.

Currently the command to run all tests:

npm test

The tests require .env.example being renamed to .env. The variables and their values for these tests are currently pointing to the nym-sandbox environment.

Tests are still in development - the test libary is jest and the test script will execute currently with: --coverage --verbosity false

Generating Documentation

You can generate docs by running npm run docs. Generated output will appear in the docs directory.

Packaging

If you're a Nym platform developer who's made changes to the client and wants to re-publish the package to NPM, here's how you do it:

  1. Bump the version number (use SemVer)
  2. npm run build
  3. npm login (if you haven't already)
  4. npm publish