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
@@ -22,8 +22,8 @@ import { SearchContextProvider } from '../SearchContext';
import { SearchBar } from './SearchBar';
import { useApi } from '@backstage/core-plugin-api';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: jest.fn().mockReturnValue({}),
}));
@@ -22,8 +22,8 @@ import { useSearch, SearchContextProvider } from './SearchContext';
import { useApi } from '@backstage/core-plugin-api';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: jest.fn(),
}));
@@ -22,8 +22,8 @@ import { SearchFilter } from './SearchFilter';
import { SearchContextProvider } from '../SearchContext';
import { useApi } from '@backstage/core-plugin-api';
jest.mock('@backstage/core', () => ({
...jest.requireActual('@backstage/core'),
jest.mock('@backstage/core-plugin-api', () => ({
...jest.requireActual('@backstage/core-plugin-api'),
useApi: jest.fn().mockReturnValue({}),
}));