git-release-manager: update core package mocks
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
+2
-2
@@ -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', () => ({
|
||||
|
||||
Reference in New Issue
Block a user