npm install @ironcorelabs/ironweb
This library contains a TypeScript definitions file which shows the available classes and methods for this SDK.
Unit Testing and Linting
This repo uses NPM scripts in order to run all tests and linting. You can run both the unit tests and linting together by running
TSLint and ESLint are used to run linting on all source code. In addition this repo has a Prettier configuration to auto-format source code upon save. Prettier should be configured within your IDE before contributing to this project.
yarn run lint
yarn run unit
To run a subset of the tests you can use the
-t option of Jest to only run tests whose name matches the provided value
yarn run unit --filter GroupCrypto
This library also has minimums for unit test code coverage in order to pass. These coverage minimums are configured within the
karma.conf.js file and determine what the minimum % of code coverage is for various metrics before the unit tests will pass.