laconic-registry-cli/test
Nabarun aa2117e472 Upgrade registry-sdk package version (#70)
Part of [laconicd testnet validator enrollment](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675)

- Resolves cerc-io/testnet-laconicd-stack#4 (comment)

Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Reviewed-on: cerc-io/laconic-registry-cli#70
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2024-07-22 06:18:02 +00:00
..
data Add CLI tests and setup CI (#53) 2024-01-29 04:46:32 +00:00
cli.test.ts Upgrade registry-sdk package version (#70) 2024-07-22 06:18:02 +00:00
helpers.ts Rename cns to registry in CLI (#57) 2024-03-19 04:42:42 +00:00
README.md Rename laconic2d to laconicd and upgrade SDK (#61) 2024-04-02 13:25:31 +00:00
run-tests.sh Upgrade registry-sdk package version (#70) 2024-07-22 06:18:02 +00:00

Run CLI tests

  • Follow the project Setup and Account Setup from root README

  • Add laconic cmd to path

    export PATH="$PWD/bin:$PATH"
    
  • Create a .env file using .env.example:

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

    laconicd 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