51bf2b6155
Change-Id: Iae18d073ba35ba8ac48e2d4c88476b38b96bbd9b
10 lines
304 B
TypeScript
10 lines
304 B
TypeScript
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
import { GlobalWithFetchMock } from 'jest-fetch-mock';
|
|
|
|
const customGlobal: GlobalWithFetchMock = global as GlobalWithFetchMock;
|
|
|
|
customGlobal.fetch = require('jest-fetch-mock');
|
|
customGlobal.fetchMock = customGlobal.fetch;
|