Skip to content

Commit

Permalink
fix test mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Nov 10, 2021
1 parent 92655c4 commit 1c8d78a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ import { mockKibanaMigrator } from '../../migrations/kibana_migrator.mock';

export const migratorInstanceMock = mockKibanaMigrator.create();
export const KibanaMigratorMock = jest.fn().mockImplementation(() => migratorInstanceMock);
jest.doMock('../../migrations/kibana/kibana_migrator', () => ({
jest.doMock('../../migrations/kibana_migrator', () => ({
KibanaMigrator: KibanaMigratorMock,
}));
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { typeRegistryMock } from './saved_objects_type_registry.mock';

export const migratorInstanceMock = mockKibanaMigrator.create();
export const KibanaMigratorMock = jest.fn().mockImplementation(() => migratorInstanceMock);
jest.doMock('./migrations/kibana/kibana_migrator', () => ({
jest.doMock('./migrations/kibana_migrator', () => ({
KibanaMigrator: KibanaMigratorMock,
}));

Expand Down

0 comments on commit 1c8d78a

Please sign in to comment.