mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-10 05:56:26 +00:00
16 lines
460 B
TypeScript
16 lines
460 B
TypeScript
// Check for missing or pending http mocks
|
|
import './http-mock';
|
|
import { mockDeep } from 'jest-mock-extended';
|
|
import type { Platform, PlatformScm } from '../lib/modules/platform';
|
|
|
|
jest.mock('../lib/modules/platform', () => ({
|
|
platform: mockDeep<Platform>(),
|
|
initPlatform: jest.fn(),
|
|
getPlatformList: jest.fn(),
|
|
}));
|
|
|
|
jest.mock('../lib/modules/platform/scm', () => ({
|
|
scm: mockDeep<PlatformScm>(),
|
|
}));
|
|
|
|
jest.mock('../lib/logger', () => mockDeep());
|