mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[kbn-es] use bare ToolingLog rather than stub (#36862)
(cherry picked from commit e8ffa2f3c7
)
This commit is contained in:
parent
558b624ba1
commit
178950ea85
1 changed files with 2 additions and 5 deletions
|
@ -22,6 +22,7 @@ const { NativeRealm } = require('./native_realm');
|
|||
jest.genMockFromModule('@elastic/elasticsearch');
|
||||
jest.mock('@elastic/elasticsearch');
|
||||
|
||||
const { ToolingLog } = require('@kbn/dev-utils');
|
||||
const { Client } = require('@elastic/elasticsearch');
|
||||
|
||||
const mockClient = {
|
||||
|
@ -35,11 +36,7 @@ const mockClient = {
|
|||
};
|
||||
Client.mockImplementation(() => mockClient);
|
||||
|
||||
const log = {
|
||||
error: jest.fn(),
|
||||
info: jest.fn(),
|
||||
};
|
||||
|
||||
const log = new ToolingLog();
|
||||
let nativeRealm;
|
||||
|
||||
beforeEach(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue