Skip to content

axiomesh/axiom-tester

Repository files navigation

axiom-tester

Test tools for @axiomesh

Usage

Install the dependencies

npm install

Run the tests ✔️

npm run smoke-test
PASS  src/tests/block.test.ts
✓ eth_getBlockByHash (36 ms)
✓ eth_getBlockByNumber (7 ms)
...

Test RPC methods

  • eth_getBlockByHash
  • eth_getBlockByNumber

Change RPC URL

// src/utils/rpc.ts
...
export const url = "http://127.0.0.1:8881"
export const client = new Web3(url)
...

Jest in vscode

just want to run single testcase, you can install Jest plugin to help you.

jest