Skip to content

Commit

Permalink
fix tests after cherry-pick
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Jan 25, 2023
1 parent 6e7fcff commit 16d5438
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { PluginType } from '@kbn/core-base-common';
const KIBANA_ROOT = process.cwd();
jest.mock('@kbn/repo-packages', () => ({
...jest.requireActual('@kbn/repo-packages'),
getPackages: jest.fn().mockReturnValue([]),
getPluginPackagesFilter: jest.fn().mockReturnValue(() => true),
}));

Expand Down Expand Up @@ -579,6 +580,7 @@ describe('plugins discovery system', () => {
const bar = getMockPackage('bar');
coreContext.env = {
...env,
pluginSearchPaths: [],
repoPackages: [foo, bar],
};
const filterFn = jest.fn((p: Package) => p === foo);
Expand All @@ -600,7 +602,7 @@ describe('plugins discovery system', () => {
{
examples: false,
oss: false,
parentDirs: [pluginDir()],
parentDirs: [],
paths: [],
},
]);
Expand Down

0 comments on commit 16d5438

Please sign in to comment.