renovate/test/globals.ts
renovate[bot] 907b2b054e
chore(deps): update linters (major) (#7185)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-authored-by: Jamie Magee <JamieMagee@users.noreply.github.com>
2020-09-07 09:54:07 +02:00

13 lines
294 B
TypeScript

import nock from 'nock';
import 'jest-extended';
jest.mock('../lib/platform', () => ({
platform: jest.createMockFromModule('../lib/platform/github'),
initPlatform: jest.fn(),
getPlatformList: jest.fn(),
}));
jest.mock('../lib/logger');
beforeAll(() => {
nock.disableNetConnect();
});