Sifchain / sifchain-ui

Sifchain UI
sifchain-ui.vercel.app
Other
18 stars 20 forks source link

CORE - Fix integration tests #498

Open pgoos opened 2 years ago

pgoos commented 2 years ago

yarn test --integration=true is failing. It covers basic integration test against our testnet and akash. The test needs to be fixed

Error: FAIL src/clients/bridges/IBCBridge/IBCBridge.integration-test.ts
  ● Test suite failed to run

    Cannot find module 'config/chains/akash/akash-testnet' from 'src/clients/bridges/IBCBridge/testFaucets.ts'

    Require stack:
      src/clients/bridges/IBCBridge/testFaucets.ts
      src/clients/bridges/IBCBridge/IBCBridge.integration-test.ts

      1 | import { DirectSecp256k1HdWallet } from "@cosmjs/proto-signing";
      2 | import { SigningStargateClient, coins } from "@cosmjs/stargate";
    > 3 | import { AKASH_TESTNET } from "config/chains/akash/akash-testnet";
        | ^
      4 | import fetch from "cross-fetch";
      5 |
      6 | // This contains TEST tokens only, please be nice and don't take them all.

      at Resolver.resolveModule (../node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.<anonymous> (src/clients/bridges/IBCBridge/testFaucets.ts:3:1)

Test Suites: 1 failed, 1 total
Tests:       0 total
Snapshots:   0 total
Time:        7.979 s
Ran all test suites.
pandaring2you commented 2 years ago

Needed to allow us to update packages and avoid potential security vulnerabilities

pandaring2you commented 2 years ago

Blocking development of all integration tests. @canercandan to sync @pgoos @alanrsoares on priorities.

pandaring2you commented 2 years ago

Current issue: Docker image for github start .yml has not been updated in 6+ months. Need support to restore docker image that has a local chain running. Currently failing on creation of liquidity pools. @pgoos to sync with @jzvikart , if still have issues, pull in Lance.

pandaring2you commented 2 years ago

will sync with @canercandan to look at commands

pandaring2you commented 2 years ago

Will sync with @canercandan if he's freed up

pandaring2you commented 2 years ago

will continue to investigate, will sync w/Caner if run into roadblocks. will know timing estimate after assessing issue.

pandaring2you commented 2 years ago

getting errors on localnet for minting smart contracts. to sync wtih @jzvikart on resolving issues

pandaring2you commented 2 years ago

sync with @canercandan @sheokapr on artificially creating tokens on localnet .

pgoos commented 2 years ago

@canercandan would you find some time to discuss localnet use cases for erc20 tokens I pointed out on slack so that we can have a fully functional test environment for UI development?

pandaring2you commented 2 years ago

Caner/Piotr to sync tomorrow

pandaring2you commented 2 years ago

Was not able to sync with Caner, but will pursue a solution with siftool w/ @jzvikart

pandaring2you commented 2 years ago

@pgoos to investigate if this is still an issue