aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/setup.ts
blob: 4ee0a3ca978f261b674fa56b2f1f2779f9718452 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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());