laconic-registry-cli/test
2024-09-20 18:50:09 +05:30
..
data Add CLI tests and setup CI (#53) 2024-01-29 04:46:32 +00:00
cli.test.ts Update create auction CLI with updated types 2024-09-20 18:50:09 +05:30
helpers.ts Update create auction CLI and add auction tests 2024-09-20 14:29:53 +05:30
README.md Update create auction CLI and add auction tests 2024-09-20 14:29:53 +05:30
run-tests.sh Replace photon with alnt token denom (#73) 2024-07-30 13:24:46 +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