laconic-registry-cli/test
neeraj 0425f0ee58
All checks were successful
Lint / lint (18.x) (pull_request) Successful in 1m30s
Tests / cli_tests (18.x) (pull_request) Successful in 8m30s
Update README
2024-03-20 11:44:14 +05:30
..
data Add CLI tests and setup CI (#53) 2024-01-29 04:46:32 +00:00
cli.test.ts Rename cns to registry in CLI (#57) 2024-03-19 04:42:42 +00:00
helpers.ts Rename cns to registry in CLI (#57) 2024-03-19 04:42:42 +00:00
README.md Update README 2024-03-20 11:44:14 +05:30
run-tests.sh Rename cns to registry in CLI (#57) 2024-03-19 04:42:42 +00:00

Run CLI tests

  • Follow the project Setup and Account Setup from root README

  • Create a .env file using .env.example:

    cp .env.example .env
    
  • Get account address of test account:

    laconic2d keys list --keyring-backend test
    
    # - address: laconic10er85pyd7ukw732e88fzv7k0jq205764hye2dx
    #   name: alice
    #   pubkey: '{"@type":"/cosmos.crypto.secp256k1.PubKey","key":"AsDoWlNIr3W013pOiwmopaB/SaWQj6r3g56xb2d9GxYK"}'
    #   type: local
    

    Use the address field from the result and assign it in TEST_ACCOUNT field of .env file

  • Run CLI tests:

    yarn test