Skip to content

Commit

Permalink
fix JEST
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwizp committed Apr 10, 2020
1 parent 0499ad2 commit 11369e2
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,20 @@ jest.mock('@elastic/eui', () => ({
default: () => {},
},
}));
jest.mock('../components/header', () => ({ Header: 'header' }));
jest.mock('../components/call_outs', () => ({ CallOuts: 'call-outs' }));
jest.mock('../components/table', () => ({
jest.mock('./components/header', () => ({ Header: 'header' }));
jest.mock('./components/call_outs', () => ({ CallOuts: 'call-outs' }));
jest.mock('./components/table', () => ({
// Note: this seems to fix React complaining about non lowercase attributes
Table: () => {
return 'table';
},
}));

jest.mock('ui/scripting_languages', () => ({
getSupportedScriptingLanguages: () => ['painless'],
getDeprecatedScriptingLanguages: () => [],
}));

jest.mock('ui/documentation_links', () => ({
documentationLinks: {
scriptedFields: {
Expand Down

0 comments on commit 11369e2

Please sign in to comment.