git-release-manager: update core package mocks

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-06-20 13:28:36 +02:00
parent fea7878f01
commit 2ba5d729e3
10 changed files with 20 additions and 20 deletions
@@ -26,8 +26,8 @@ import {
} from '../../../test-helpers/test-helpers';
import { useCreateReleaseCandidate } from './useCreateReleaseCandidate';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: () => mockApiClient,
}));
jest.mock('../../../contexts/UserContext', () => ({
@@ -21,8 +21,8 @@ import { Features } from './Features';
import { mockApiClient, mockCalverProject } from '../test-helpers/test-helpers';
import { TEST_IDS } from '../test-helpers/test-ids';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: () => mockApiClient,
}));
jest.mock('../contexts/ProjectContext', () => ({
@@ -29,8 +29,8 @@ import {
import { PatchBody } from './PatchBody';
import { TEST_IDS } from '../../test-helpers/test-ids';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: () => mockApiClient,
}));
jest.mock('../../contexts/ProjectContext', () => ({
@@ -28,8 +28,8 @@ import {
} from '../../../test-helpers/test-helpers';
import { usePatch } from './usePatch';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: () => mockApiClient,
}));
jest.mock('../../../contexts/UserContext', () => ({
@@ -25,8 +25,8 @@ import {
} from '../../../test-helpers/test-helpers';
import { usePromoteRc } from './usePromoteRc';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: () => mockApiClient,
}));
jest.mock('../../../contexts/ProjectContext', () => ({
@@ -33,8 +33,8 @@ jest.mock('react-router', () => ({
search: mockSearchCalver,
})),
}));
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: () => mockApiClient,
}));
jest.mock('../../contexts/ProjectContext', () => ({
@@ -32,8 +32,8 @@ jest.mock('react-router', () => ({
search: mockSearchCalver,
})),
}));
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: () => mockApiClient,
}));
jest.mock('../../contexts/ProjectContext', () => ({