diff --git a/packages/accounts/test/account.access_key.test.ts b/packages/accounts/test/account.access_key.test.ts index 04264ac082..831b1c57b5 100644 --- a/packages/accounts/test/account.access_key.test.ts +++ b/packages/accounts/test/account.access_key.test.ts @@ -1,4 +1,4 @@ -import { beforeAll, beforeEach, expect, test } from '@jest/globals'; +import { beforeAll, beforeEach, expect, jest, test } from '@jest/globals'; import { KeyPair } from '@near-js/crypto'; import { createAccount, deployContract, generateUniqueString, networkId, setUpTestConnection } from './test-utils'; @@ -8,6 +8,8 @@ let workingAccount; let contractId; let contract; +jest.setTimeout(50000); + beforeAll(async () => { nearjs = await setUpTestConnection(); }); diff --git a/packages/accounts/test/account.test.ts b/packages/accounts/test/account.test.ts index c6c45d4a89..10726fd63b 100644 --- a/packages/accounts/test/account.test.ts +++ b/packages/accounts/test/account.test.ts @@ -1,4 +1,4 @@ -import { afterAll, beforeAll, beforeEach, describe, expect, test } from '@jest/globals'; +import { afterAll, beforeAll, beforeEach, describe, expect, jest, test } from '@jest/globals'; import { getTransactionLastResult, Logger } from '@near-js/utils'; import { actionCreators } from '@near-js/transactions'; import { BlockResult, TypedError } from '@near-js/types'; @@ -10,6 +10,7 @@ import { createAccount, generateUniqueString, HELLO_WASM_PATH, HELLO_WASM_BALANC let nearjs; let workingAccount; +jest.setTimeout(50000); beforeAll(async () => { nearjs = await setUpTestConnection(); diff --git a/packages/accounts/test/account_multisig.test.ts b/packages/accounts/test/account_multisig.test.ts index bb1b3101ce..996a32e5db 100644 --- a/packages/accounts/test/account_multisig.test.ts +++ b/packages/accounts/test/account_multisig.test.ts @@ -1,4 +1,4 @@ -import { beforeAll, describe, expect, test } from '@jest/globals'; +import { beforeAll, describe, expect, jest, test } from '@jest/globals'; import { parseNearAmount } from '@near-js/utils'; import { KeyPair } from '@near-js/crypto'; import { InMemorySigner } from '@near-js/signers'; @@ -14,6 +14,8 @@ const { functionCall, transfer } = actionCreators; let nearjs; let startFromVersion; +jest.setTimeout(50000); + const getAccount2FA = async (account, keyMapping = ({ public_key: publicKey }) => ({ publicKey, kind: 'phone' })) => { // modifiers to functions replaces contract helper (CH) const { accountId } = account; diff --git a/packages/accounts/test/promise.test.ts b/packages/accounts/test/promise.test.ts index 85d27a5e67..8b90e305d0 100644 --- a/packages/accounts/test/promise.test.ts +++ b/packages/accounts/test/promise.test.ts @@ -1,9 +1,11 @@ -import { afterEach, beforeAll, beforeEach, describe, expect, test } from '@jest/globals'; +import { afterEach, beforeAll, beforeEach, describe, expect, jest, test } from '@jest/globals'; import { deployContract, generateUniqueString, setUpTestConnection } from './test-utils'; let nearjs; -const CONTRACT_CALL_GAS = BigInt(300000000000000); +const CONTRACT_CALL_GAS = 300000000000000n; + +jest.setTimeout(120000); beforeAll(async () => { nearjs = await setUpTestConnection(); diff --git a/packages/providers/test/providers.test.ts b/packages/providers/test/providers.test.ts index 8361681bb0..7da83fa2ab 100644 --- a/packages/providers/test/providers.test.ts +++ b/packages/providers/test/providers.test.ts @@ -1,10 +1,10 @@ -import { afterAll, beforeAll, describe, expect, test } from '@jest/globals'; +import { afterAll, beforeAll, describe, expect, jest, test } from '@jest/globals'; import { getTransactionLastResult } from '@near-js/utils'; import { Worker } from 'near-workspaces'; import { TextEncoder } from 'util'; import { FailoverRpcProvider, JsonRpcProvider } from '../src'; - +jest.setTimeout(20000); global.TextEncoder = TextEncoder; ['json provider', 'fallback provider'].forEach((name) => {