Skip to content

Commit b284c15

Browse files
authored
Upgrade EUI to v16.1.0 (#52088) (#52340)
* eui 16.1.0 * snapshot udpates * more snapshot updates * enqueueStateChange mock, resulting snapshot updates
1 parent e61eee7 commit b284c15

File tree

13 files changed

+30
-13
lines changed

13 files changed

+30
-13
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"@elastic/charts": "^14.0.0",
111111
"@elastic/datemath": "5.0.2",
112112
"@elastic/ems-client": "1.0.5",
113-
"@elastic/eui": "16.0.0",
113+
"@elastic/eui": "16.1.0",
114114
"@elastic/filesaver": "1.1.2",
115115
"@elastic/good": "8.1.1-kibana2",
116116
"@elastic/numeral": "2.3.3",

src/dev/jest/setup/mocks.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,12 @@ jest.mock('moment-timezone', () => {
4747
moment.tz.guess = () => 'America/New_York';
4848
return moment;
4949
});
50+
51+
jest.mock('@elastic/eui/lib/services/react', () => {
52+
// `enqueueStateChange` is an EUI method to batch queued functions that trigger React `setState` calls.
53+
// This is for performance, but when used in certain Jest scernarios it can be nondeterministic.
54+
// Jest tests are never concerned about the state prior to batch completion, so we bypass batching entirely.
55+
return {
56+
enqueueStateChange: fn => fn(),
57+
};
58+
});

test/interpreter_functional/plugins/kbn_tp_run_pipeline/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"license": "Apache-2.0",
99
"dependencies": {
10-
"@elastic/eui": "16.0.0",
10+
"@elastic/eui": "16.1.0",
1111
"react": "^16.12.0",
1212
"react-dom": "^16.12.0"
1313
}

test/plugin_functional/plugins/kbn_tp_custom_visualizations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"license": "Apache-2.0",
99
"dependencies": {
10-
"@elastic/eui": "16.0.0",
10+
"@elastic/eui": "16.1.0",
1111
"react": "^16.12.0"
1212
}
1313
}

test/plugin_functional/plugins/kbn_tp_embeddable_explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"license": "Apache-2.0",
1010
"dependencies": {
11-
"@elastic/eui": "16.0.0",
11+
"@elastic/eui": "16.1.0",
1212
"react": "^16.12.0"
1313
},
1414
"scripts": {

test/plugin_functional/plugins/kbn_tp_sample_panel_action/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"license": "Apache-2.0",
1010
"dependencies": {
11-
"@elastic/eui": "16.0.0",
11+
"@elastic/eui": "16.1.0",
1212
"react": "^16.12.0"
1313
},
1414
"scripts": {

x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/autoplay_settings.examples.storyshot

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__examples__/__snapshots__/toolbar_settings.examples.storyshot

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/legacy/plugins/canvas/shareable_runtime/components/footer/settings/__tests__/__snapshots__/settings.test.tsx.snap

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/legacy/plugins/siem/public/components/notes/note_card/__snapshots__/note_card_body.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)