0
0
mirror of https://github.com/renovatebot/renovate.git synced 2024-09-07 22:52:14 +00:00
renovatebot_renovate/test/setup.ts
2023-09-08 11:40:04 +00:00

17 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());