diff --git a/package.json b/package.json index 30e4e4c6b41..98eed9ba2c8 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,6 @@ "@hello-pangea/dnd": "^16.3.0", "@types/lodash": "^4.14.198", "@types/numeral": "^2.0.2", - "@types/react-input-autosize": "^2.2.1", "@types/react-window": "^1.8.5", "@types/refractor": "^3.0.2", "@types/resize-observer-browser": "^0.1.7", @@ -80,7 +79,6 @@ "react-dropzone": "^11.7.1", "react-element-to-jsx-string": "^14.3.4", "react-focus-on": "^3.9.1", - "react-input-autosize": "^3.0.0", "react-is": "^17.0.2", "react-remove-scroll-bar": "^2.3.4", "react-virtualized-auto-sizer": "^1.0.20", diff --git a/scripts/jest/setup/mocks.js b/scripts/jest/setup/mocks.js index d83925fd818..1f7dc9cdb80 100644 --- a/scripts/jest/setup/mocks.js +++ b/scripts/jest/setup/mocks.js @@ -15,6 +15,12 @@ jest.mock('./../../../src/components/icon', () => { return { EuiIcon }; }); +jest.mock('./../../../src/components/text_truncate', () => { + const rest = jest.requireActual('./../../../src/components/text_truncate'); + const utils = require('./../../../src/components/text_truncate/utils.testenv'); + return { ...rest, ...utils }; +}); + jest.mock('./../../../src/services/accessibility', () => { const a11y = jest.requireActual('./../../../src/services/accessibility'); const { diff --git a/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap b/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap index 747e46f60e8..6bf8b35fb61 100644 --- a/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap +++ b/src/components/combo_box/__snapshots__/combo_box.test.tsx.snap @@ -16,26 +16,19 @@ exports[`EuiComboBox is rendered 1`] = ` data-test-subj="comboBoxInput" tabindex="-1" > -