storj/web/storagenode/jestSetup.ts
NickolaiYurchenko e86041a5cf web: stylint config moved from package.json
Change-Id: Ic16ef4190947e5af447072f24055ca9294526956
2021-02-08 10:48:06 +00:00

10 lines
315 B
TypeScript

// Copyright (C) 2019 Storj Labs, Inc.
// See LICENSE for copying information.
import { GlobalWithFetchMock } from 'jest-fetch-mock';
const customGlobal: GlobalWithFetchMock = global as unknown as GlobalWithFetchMock;
customGlobal.fetch = require('jest-fetch-mock');
customGlobal.fetchMock = customGlobal.fetch;