diff --git a/packages/phone-number-privacy/signer/test/end-to-end/disabled-apis.test.ts b/packages/phone-number-privacy/signer/test/end-to-end/disabled-apis.test.ts index 85b14405f..594c6888a 100644 --- a/packages/phone-number-privacy/signer/test/end-to-end/disabled-apis.test.ts +++ b/packages/phone-number-privacy/signer/test/end-to-end/disabled-apis.test.ts @@ -20,8 +20,7 @@ import { } from '@celo/phone-number-privacy-common' import { defined, noBool, noNumber, noString } from '@celo/utils/lib/sign-typed-data-utils' import { LocalWallet } from '@celo/wallet-local' -import fetch from 'node-fetch' - +import 'isomorphic-fetch' require('dotenv').config() const { ACCOUNT_ADDRESS1, BLINDED_PHONE_NUMBER, PRIVATE_KEY1 } = TestUtils.Values diff --git a/packages/phone-number-privacy/signer/test/end-to-end/domain.test.ts b/packages/phone-number-privacy/signer/test/end-to-end/domain.test.ts index 8539831b8..019da1422 100644 --- a/packages/phone-number-privacy/signer/test/end-to-end/domain.test.ts +++ b/packages/phone-number-privacy/signer/test/end-to-end/domain.test.ts @@ -27,7 +27,7 @@ import { import { DomainRequest } from '@celo/phone-number-privacy-common/src' import { defined, noBool, noNumber, noString } from '@celo/utils/lib/sign-typed-data-utils' import { LocalWallet } from '@celo/wallet-local' -import fetch, { Response } from 'node-fetch' +import 'isomorphic-fetch' import { getTestParamsForContext } from './utils' const { ACCOUNT_ADDRESS1, PRIVATE_KEY1 } = TestUtils.Values diff --git a/packages/phone-number-privacy/signer/test/end-to-end/pnp.test.ts b/packages/phone-number-privacy/signer/test/end-to-end/pnp.test.ts index 0b726d83d..8be4b6f10 100644 --- a/packages/phone-number-privacy/signer/test/end-to-end/pnp.test.ts +++ b/packages/phone-number-privacy/signer/test/end-to-end/pnp.test.ts @@ -15,7 +15,7 @@ import { } from '@celo/phone-number-privacy-common' import threshold_bls from 'blind-threshold-bls' import { randomBytes } from 'crypto' -import fetch, { Response } from 'node-fetch' +import 'isomorphic-fetch' import { config } from '../../src/config' import { getBlindedPhoneNumber, getTestParamsForContext } from './utils'