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