2021-08-16 12:07:36 -06:00
|
|
|
// Check for missing or pending http mocks
|
|
|
|
import './http-mock';
|
2023-02-22 01:18:53 -07:00
|
|
|
import { mockDeep } from 'jest-mock-extended';
|
2023-09-08 05:40:04 -06:00
|
|
|
import type { Platform, PlatformScm } from '../lib/modules/platform';
|
2021-08-16 12:07:36 -06:00
|
|
|
|
2022-03-03 02:35:26 -07:00
|
|
|
jest.mock('../lib/modules/platform', () => ({
|
2023-09-08 05:40:04 -06:00
|
|
|
platform: mockDeep<Platform>(),
|
2019-09-10 01:50:29 -06:00
|
|
|
initPlatform: jest.fn(),
|
2020-04-08 01:14:32 -06:00
|
|
|
getPlatformList: jest.fn(),
|
2019-09-10 01:50:29 -06:00
|
|
|
}));
|
2023-09-08 05:40:04 -06:00
|
|
|
|
2023-02-22 01:18:53 -07:00
|
|
|
jest.mock('../lib/modules/platform/scm', () => ({
|
|
|
|
scm: mockDeep<PlatformScm>(),
|
|
|
|
}));
|
|
|
|
|
2023-09-08 05:40:04 -06:00
|
|
|
jest.mock('../lib/logger', () => mockDeep());
|