@nimiq/utils v0.12.4
Nimiq Utils
Simple helper libraries for nimiq frontends.
Read the documentation for more information.
Development
Run yarn to install the dependencies.
Running tests
Run yarn test to run all tests.
RPC snapshot testing
The test suite includes snapshot based RPC testing for AlbatrossPolicy and SupplyCalculator. This system captures RPC responses as snapshots, allowing faster test runs and offline testing.
- Snapshots are stored in the
tests/__snapshots__/directory. - Tests use these snapshots by default instead of making actual RPC calls.
- To update snapshots with fresh RPC responses, run
yarn test:update.
This ensures that our client-side calculations always match the actual RPC implementation, without requiring a live connection for each test run.
1 year ago
11 months ago
10 months ago
8 months ago
8 months ago
6 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago