Commit c5ce73c
# Backport
This will backport the following commits from `main` to `8.19`:
- [Apply `@emotion/jest` matchers globally
(elastic#218114)](elastic#218114)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Anton
Dosov","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-25T16:24:16Z","message":"Apply
`@emotion/jest` matchers globally (elastic#218114)\n\n## Summary\n\nclose
https://github.com/elastic/kibana/issues/216459\nfollow-up to
https://github.com/elastic/kibana/pull/216489\n\nSince we're migrating
to Emotion from SCSS/styled-components, this PR\nglobally aligns the
Jest setup by adding '@emotion/jest' matchers.\n\nHowever, the matchers
conflict with the styled-components Jest matchers,\nso I had to disable
them globally and reapply them in the tests where\nthey were used
(either the matchers or styled components snapshot\nserializer) .
Tracking issue to clean this
up\nhttps://github.com/elastic/issues/219037 when migrated to
Emotion","sha":"a5502b076348eea13b1ef32c5c9ebc96574bcbc3","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:SharedUX","backport:version","v9.1.0","v8.19.0"],"title":"Apply
`@emotion/jest` matchers
globally","number":218114,"url":"https://github.com/elastic/kibana/pull/218114","mergeCommit":{"message":"Apply
`@emotion/jest` matchers globally (elastic#218114)\n\n## Summary\n\nclose
https://github.com/elastic/kibana/issues/216459\nfollow-up to
https://github.com/elastic/kibana/pull/216489\n\nSince we're migrating
to Emotion from SCSS/styled-components, this PR\nglobally aligns the
Jest setup by adding '@emotion/jest' matchers.\n\nHowever, the matchers
conflict with the styled-components Jest matchers,\nso I had to disable
them globally and reapply them in the tests where\nthey were used
(either the matchers or styled components snapshot\nserializer) .
Tracking issue to clean this
up\nhttps://github.com/elastic/issues/219037 when migrated to
Emotion","sha":"a5502b076348eea13b1ef32c5c9ebc96574bcbc3"}},"sourceBranch":"main","suggestedTargetBranches":["8.19"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218114","number":218114,"mergeCommit":{"message":"Apply
`@emotion/jest` matchers globally (elastic#218114)\n\n## Summary\n\nclose
https://github.com/elastic/kibana/issues/216459\nfollow-up to
https://github.com/elastic/kibana/pull/216489\n\nSince we're migrating
to Emotion from SCSS/styled-components, this PR\nglobally aligns the
Jest setup by adding '@emotion/jest' matchers.\n\nHowever, the matchers
conflict with the styled-components Jest matchers,\nso I had to disable
them globally and reapply them in the tests where\nthey were used
(either the matchers or styled components snapshot\nserializer) .
Tracking issue to clean this
up\nhttps://github.com/elastic/issues/219037 when migrated to
Emotion","sha":"a5502b076348eea13b1ef32c5c9ebc96574bcbc3"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
---------
Co-authored-by: Anton Dosov <[email protected]>
1 parent 606de71 commit c5ce73c
File tree
61 files changed
+103
-66
lines changed- src
- core/packages/chrome/browser-internal/src/ui/header/__snapshots__
- platform
- plugins
- private/vis_types/table/public/components
- x-pack
- platform/plugins/private/canvas/public/components/export_app/__snapshots__
- solutions
- observability/plugins
- uptime/public/legacy_uptime/components
- certificates
- common/charts
- monitor
- status_details
- availability_reporting
- synthetics/waterfall/components
- ux/public/components/app/rum_dashboard/visitor_breakdown_map
- security/plugins/security_solution/public
- common/components
- charts
- filters_global
- header_page
- header_section
- hover_visibility_container
- line_clamp
- link_icon
- selectable_text
- subtitle
- truncatable_text
- utility_bar
- detection_engine/rule_exceptions/components/value_with_space_warning/__tests__
- detections/components
- alerts_kpis
- alerts_histogram_panel
- alerts_treemap_panel
- common
- severity
- entity_analytics/components/severity/common
- explore
- components
- authentication
- paginated_table
- hosts/components/uncommon_process_table
- network/components
- details
- embeddables/map_tool_tip
- network_dns_table
- network_http_table
- network_top_countries_table
- network_top_n_flow_table
- tls_table
- users_table
- overview/components
- host_overview
- user_overview
- timelines/components
- field_renderers
- graph_overlay
- netflow
- timeline
- body/renderers
- alert_renderer/helpers
- netflow
- data_providers
- unified_components/data_table
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
61 files changed
+103
-66
lines changedLines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | 14 | | |
17 | 15 | | |
18 | 16 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 13 | | |
17 | 14 | | |
18 | 15 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
Lines changed: 4 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 4 | + | |
11 | 5 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
23 | 9 | | |
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | | - | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
| |||
Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments