yarn test
yarn run v1.22.5
$ jest
PASS __tests__/util.test.ts
PASS __tests__/client.test.ts (6.685 s)
FAIL __tests__/sdk-client.test.ts (63.705 s)
● SDK Client Test › getBalance
: Timeout - Async callback was not invoked within the 30000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 30000 ms timeout specified by jest.setTimeout.Error:
94 | })
95 |
> 96 | it('getBalance', async () => {
| ^
97 | let balances = await cosmosMainnetClient.getBalance(cosmos_address)
98 | expect(balances).toEqual([])
99 |
at new Spec (../../node_modules/jest-cli/node_modules/jest-jasmine2/build/jasmine/Spec.js:116:22)
at Suite.<anonymous> (__tests__/sdk-client.test.ts:96:3)
● SDK Client Test › transfer
: Timeout - Async callback was not invoked within the 30000 ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 30000 ms timeout specified by jest.setTimeout.Error:
162 | })
163 |
> 164 | it('transfer', async () => {
| ^
165 | const expected_txsPost_result: BroadcastTxCommitResult = {
166 | check_tx: {},
167 | deliver_tx: {},
at new Spec (../../node_modules/jest-cli/node_modules/jest-jasmine2/build/jasmine/Spec.js:116:22)
at Suite.<anonymous> (__tests__/sdk-client.test.ts:164:3)
A worker process has failed to exit gracefully and has been force exited. This is likely caused by tests leaking due to improper teardown. Try running with --runInBand --detectOpenHandles to find leaks.
Test Suites: 1 failed, 2 passed, 3 total
Tests: 2 failed, 27 passed, 29 total
Snapshots: 0 total
Time: 64.563 s, estimated 69 s
Ran all test suites.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.