From 2c969e384e21bbcc447b556b7950cc5be58aabc6 Mon Sep 17 00:00:00 2001 From: Shenoy Pratik Date: Thu, 21 Dec 2023 13:09:33 -0800 Subject: [PATCH] [Backport 2.x] Revert jest tests config to use babel (#1319) (#1320) * update jest config to use babel instead of ts-jest Signed-off-by: Shenoy Pratik (cherry picked from commit a262aaff179c078206a3a6a9fe88602815b0d7aa) * remove ts-jest package Signed-off-by: Shenoy Pratik (cherry picked from commit 66d56218aea7647f63b030f02e69af568e33d1d5) * update yarn.lock file Signed-off-by: Shenoy Pratik * update snapshots Signed-off-by: Shenoy Pratik --------- Signed-off-by: Shenoy Pratik --- .babelrc | 18 --- .husky/.gitignore | 1 + babel.config.js | 26 ++++ package.json | 3 +- .../__snapshots__/log_config.test.tsx.snap | 16 +-- .../service_config.test.tsx.snap | 8 +- .../__snapshots__/trace_config.test.tsx.snap | 8 +- .../live_tail_button.test.tsx.snap | 12 +- .../__snapshots__/search.test.tsx.snap | 14 +- .../custom_panel_table.test.tsx.snap | 8 +- .../custom_panel_view.test.tsx.snap | 48 +++---- .../__snapshots__/utils.test.tsx.snap | 36 ++--- .../__snapshots__/empty_panel.test.tsx.snap | 16 +-- .../__snapshots__/panel_grid.test.tsx.snap | 4 +- .../visualization_container.test.tsx.snap | 4 +- .../visualization_flyout.test.tsx.snap | 16 +-- .../connection_details.test.tsx.snap | 16 +-- ...data_connections_description.test.tsx.snap | 4 +- .../__snapshots__/no_access.test.tsx.snap | 4 +- .../__snapshots__/no_results.test.tsx.snap | 4 +- .../patterns_header.test.tsx.snap | 4 +- .../__snapshots__/save_panel.test.tsx.snap | 4 +- .../__snapshots__/field.test.tsx.snap | 4 +- .../__snapshots__/sidebar.test.tsx.snap | 112 +++++++-------- .../__snapshots__/config_panel.test.tsx.snap | 80 +++++------ .../count_distribution.test.tsx.snap | 4 +- .../create_integration_helpers.test.ts | 135 ++++++++++-------- .../__snapshots__/searchbar.test.tsx.snap | 8 +- .../__snapshots__/sidebar.test.tsx.snap | 16 +-- .../metrics_export.test.tsx.snap | 4 +- .../metrics_export_panel.test.tsx.snap | 4 +- .../__snapshots__/top_menu.test.tsx.snap | 8 +- .../__snapshots__/empty_view.test.tsx.snap | 4 +- .../__snapshots__/metrics_grid.test.tsx.snap | 8 +- .../__tests__/__snapshots__/bar.test.tsx.snap | 4 +- .../__snapshots__/gauge.test.tsx.snap | 8 +- .../__snapshots__/heatmap.test.tsx.snap | 4 +- .../__snapshots__/histogram.test.tsx.snap | 4 +- .../horizontal_bar.test.tsx.snap | 4 +- .../__snapshots__/line.test.tsx.snap | 4 +- .../__snapshots__/metrics.test.tsx.snap | 8 +- .../__tests__/__snapshots__/pie.test.tsx.snap | 4 +- .../__snapshots__/text.test.tsx.snap | 4 +- .../__snapshots__/treemap.test.tsx.snap | 4 +- test/jest.config.js | 3 - yarn.lock | 116 +-------------- 46 files changed, 370 insertions(+), 458 deletions(-) delete mode 100644 .babelrc create mode 100644 .husky/.gitignore create mode 100644 babel.config.js diff --git a/.babelrc b/.babelrc deleted file mode 100644 index e21b3f2f2b..0000000000 --- a/.babelrc +++ /dev/null @@ -1,18 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-env", - { - "targets": { "node": "10" } - } - ], - "@babel/preset-react", - "@babel/preset-typescript" - ], - "plugins": [ - "@babel/plugin-transform-modules-commonjs", - ["@babel/plugin-transform-runtime", { "regenerator": true }], - "@babel/plugin-proposal-class-properties", - "@babel/plugin-proposal-object-rest-spread" - ] -} \ No newline at end of file diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000000..31354ec138 --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/babel.config.js b/babel.config.js new file mode 100644 index 0000000000..3805f7cf5d --- /dev/null +++ b/babel.config.js @@ -0,0 +1,26 @@ +/* + * Copyright OpenSearch Contributors + * SPDX-License-Identifier: Apache-2.0 + */ + +// babelrc doesn't respect NODE_PATH anymore but using require does. +// Alternative to install them locally in node_modules +module.exports = function (api) { + // ensure env is test so that this config won't impact build or dev server + if (api.env('test')) { + return { + presets: [ + require('@babel/preset-env'), + require('@babel/preset-react'), + require('@babel/preset-typescript'), + ], + plugins: [ + [require('@babel/plugin-transform-runtime'), { regenerator: true }], + require('@babel/plugin-transform-class-properties'), + require('@babel/plugin-transform-object-rest-spread'), + [require('@babel/plugin-transform-modules-commonjs'), { allowTopLevelThis: true }], + ], + }; + } + return {}; +}; diff --git a/package.json b/package.json index f57ca2b1e7..f80b3b6c0b 100644 --- a/package.json +++ b/package.json @@ -53,8 +53,7 @@ "eslint": "^6.8.0", "husky": "6.0.0", "jest-dom": "^4.0.0", - "lint-staged": "^13.1.0", - "ts-jest": "^29.1.0" + "lint-staged": "^13.1.0" }, "resolutions": { "react-syntax-highlighter": "^15.4.3", diff --git a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap index 70ce722efd..0c51766a16 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/log_config.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Log Config component renders empty log config 1`] = ` - - - + - + `; exports[`Log Config component renders with query 1`] = ` - - - + - + `; diff --git a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap index ec0cf3879e..8bf087911f 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/service_config.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Service Config component renders empty service config 1`] = ` - - + `; exports[`Service Config component renders with one service selected 1`] = ` - - + `; diff --git a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap index cf475f481d..ca51495382 100644 --- a/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap +++ b/public/components/application_analytics/__tests__/__snapshots__/trace_config.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Trace Config component renders empty trace config 1`] = ` - - + `; exports[`Trace Config component renders with one trace selected 1`] = ` - - + `; diff --git a/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap b/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap index 553f9b0dff..3e8c7b716a 100644 --- a/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap +++ b/public/components/common/live_tail/__tests__/__snapshots__/live_tail_button.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Live tail button change live tail to 10s interval 1`] = ` - - + `; exports[`Live tail button starts live tail with 5s interval 1`] = ` - - + `; exports[`Live tail off button stop live tail 1`] = ` - @@ -271,5 +271,5 @@ exports[`Live tail off button stop live tail 1`] = ` - + `; diff --git a/public/components/common/search/__tests__/__snapshots__/search.test.tsx.snap b/public/components/common/search/__tests__/__snapshots__/search.test.tsx.snap index b8a95255af..c227af5246 100644 --- a/public/components/common/search/__tests__/__snapshots__/search.test.tsx.snap +++ b/public/components/common/search/__tests__/__snapshots__/search.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Explorer Search component renders basic component 1`] = ` } } > - +
@@ -160,7 +160,7 @@ exports[`Explorer Search component renders basic component 1`] = ` } } > -
-
+ } @@ -817,7 +817,7 @@ exports[`Explorer Search component renders basic component 1`] = `
- - +
@@ -905,6 +905,6 @@ exports[`Explorer Search component renders basic component 1`] = ` - + `; diff --git a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap index e32dd9ff05..e923079d1e 100644 --- a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap +++ b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_table.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Panels Table Component renders empty panel table container 1`] = ` } } > - - + `; @@ -607,7 +607,7 @@ exports[`Panels Table Component renders panel table container 1`] = ` } } > - - + `; diff --git a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap index a39ce7ff25..eb407289ce 100644 --- a/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap +++ b/public/components/custom_panels/__tests__/__snapshots__/custom_panel_view.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Panels View Component renders panel view container with visualizations } } > - - @@ -849,7 +849,7 @@ exports[`Panels View Component renders panel view container with visualizations - + @@ -872,7 +872,7 @@ exports[`Panels View Component renders panel view container with visualizations
-
-
+ - @@ -1666,7 +1666,7 @@ exports[`Panels View Component renders panel view container with visualizations
- @@ -1785,7 +1785,7 @@ exports[`Panels View Component renders panel view container with visualizations
-
+
@@ -1798,8 +1798,8 @@ exports[`Panels View Component renders panel view container with visualizations /> - - + - + @@ -2340,7 +2340,7 @@ exports[`Panels View Component renders panel view container with visualizations - + `; @@ -2356,7 +2356,7 @@ exports[`Panels View Component renders panel view container without visualizatio } } > - - @@ -3068,7 +3068,7 @@ exports[`Panels View Component renders panel view container without visualizatio - + @@ -3091,7 +3091,7 @@ exports[`Panels View Component renders panel view container without visualizatio
-
-
+ - @@ -3871,7 +3871,7 @@ exports[`Panels View Component renders panel view container without visualizatio
- @@ -3985,7 +3985,7 @@ exports[`Panels View Component renders panel view container without visualizatio
-
+
@@ -3998,8 +3998,8 @@ exports[`Panels View Component renders panel view container without visualizatio /> - - + - + @@ -4429,6 +4429,6 @@ exports[`Panels View Component renders panel view container without visualizatio - + `; diff --git a/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap b/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap index a6c47b9fe9..0d5e2e56a0 100644 --- a/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap +++ b/public/components/custom_panels/helpers/__tests__/__snapshots__/utils.test.tsx.snap @@ -2,7 +2,7 @@ exports[`Utils helper functions renders displayVisualization function 1`] = `
- - - - - - + + +
`; exports[`Utils helper functions renders displayVisualization function 2`] = `
- - - - - - + + +
`; exports[`Utils helper functions renders displayVisualization function 3`] = `
- - - - - - + + +
`; diff --git a/public/components/custom_panels/panel_modules/__tests__/__snapshots__/empty_panel.test.tsx.snap b/public/components/custom_panels/panel_modules/__tests__/__snapshots__/empty_panel.test.tsx.snap index cfc104e68a..0e74bd718b 100644 --- a/public/components/custom_panels/panel_modules/__tests__/__snapshots__/empty_panel.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/__tests__/__snapshots__/empty_panel.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Empty panel view component renders empty panel view with disabled popover 1`] = ` - @@ -79,7 +79,7 @@ exports[`Empty panel view component renders empty panel view with disabled popov
- @@ -193,7 +193,7 @@ exports[`Empty panel view component renders empty panel view with disabled popov
-
+ @@ -206,11 +206,11 @@ exports[`Empty panel view component renders empty panel view with disabled popov /> - + `; exports[`Empty panel view component renders empty panel view with enabled popover 1`] = ` - @@ -288,7 +288,7 @@ exports[`Empty panel view component renders empty panel view with enabled popove
- @@ -407,7 +407,7 @@ exports[`Empty panel view component renders empty panel view with enabled popove
-
+ @@ -420,5 +420,5 @@ exports[`Empty panel view component renders empty panel view with enabled popove /> - + `; diff --git a/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap b/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap index 59c4928e0f..b47c7d6296 100644 --- a/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/panel_grid/__tests__/__snapshots__/panel_grid.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Panel Grid Component renders panel grid component with empty visualizations 1`] = ` - - + `; diff --git a/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap b/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap index 220bde05bb..4fc2c8ef84 100644 --- a/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/visualization_container/__tests__/__snapshots__/visualization_container.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Visualization Container Component renders add visualization container 1 } } > - - + `; diff --git a/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap b/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap index f9bb8c76ae..0e37e1e4a2 100644 --- a/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap +++ b/public/components/custom_panels/panel_modules/visualization_flyout/__tests__/__snapshots__/visualization_flyout.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Visualization Flyout Component renders add visualization Flyout 1`] = ` - - - - + + `; exports[`Visualization Flyout Component renders replace visualization Flyout 1`] = ` - - - - + + `; diff --git a/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap b/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap index 6ebfa5078a..6fb23b7abb 100644 --- a/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap +++ b/public/components/datasources/components/__tests__/__snapshots__/connection_details.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Connection Details test Renders connection details for prometheus datasource 1`] = ` - - + - +
- + `; exports[`Connection Details test Renders connection details for s3 datasource 1`] = ` - - +
-
+
- + `; diff --git a/public/components/datasources/components/__tests__/__snapshots__/manage_data_connections_description.test.tsx.snap b/public/components/datasources/components/__tests__/__snapshots__/manage_data_connections_description.test.tsx.snap index d724537df8..b0af24ae49 100644 --- a/public/components/datasources/components/__tests__/__snapshots__/manage_data_connections_description.test.tsx.snap +++ b/public/components/datasources/components/__tests__/__snapshots__/manage_data_connections_description.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Manage Data Connections Description test Renders manage data connections description 1`] = ` -
@@ -157,5 +157,5 @@ exports[`Manage Data Connections Description test Renders manage data connection />
-
+ `; diff --git a/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap b/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap index 89c389ab83..a4b27f4544 100644 --- a/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap +++ b/public/components/datasources/components/__tests__/__snapshots__/no_access.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`No access test Renders no access view of data source 1`] = ` - +
-
+ `; diff --git a/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap b/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap index 3e23d7126c..e1782a0b31 100644 --- a/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap +++ b/public/components/event_analytics/__tests__/__snapshots__/no_results.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`No result component Renders No result component 1`] = ` - + @@ -134,5 +134,5 @@ exports[`No result component Renders No result component 1`] = `
- + `; diff --git a/public/components/event_analytics/explorer/log_patterns/__tests__/__snapshots__/patterns_header.test.tsx.snap b/public/components/event_analytics/explorer/log_patterns/__tests__/__snapshots__/patterns_header.test.tsx.snap index 2ce4cbd870..8777405139 100644 --- a/public/components/event_analytics/explorer/log_patterns/__tests__/__snapshots__/patterns_header.test.tsx.snap +++ b/public/components/event_analytics/explorer/log_patterns/__tests__/__snapshots__/patterns_header.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Patterns header component Renders header of log patterns 1`] = ` - - + `; diff --git a/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap b/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap index a3a23c1117..f6f024c453 100644 --- a/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap +++ b/public/components/event_analytics/explorer/save_panel/__tests__/__snapshots__/save_panel.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Saved query table component Renders saved query table 1`] = ` } } > - - + `; diff --git a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap index 7f7e730ccb..acf3d81679 100644 --- a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap +++ b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/field.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Field component Renders a sidebar field 1`] = ` } } > - - + `; diff --git a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap index 28c6cd8128..102994f08e 100644 --- a/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap +++ b/public/components/event_analytics/explorer/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Siderbar component Renders empty sidebar component 1`] = ` } } > - - + `; @@ -330,7 +330,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` } } > - - - + @@ -1526,7 +1526,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="host" data-test-subj="fieldList-field" > - - + @@ -1913,7 +1913,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="ip_count" data-test-subj="fieldList-field" > - - + @@ -2300,7 +2300,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="per_ip_bytes" data-test-subj="fieldList-field" > - - + @@ -2687,7 +2687,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="resp_code" data-test-subj="fieldList-field" > - - + @@ -3074,7 +3074,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="sum_bytes" data-test-subj="fieldList-field" > - - + @@ -3619,7 +3619,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="agent" data-test-subj="fieldList-field" > - - + @@ -4063,7 +4063,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="bytes" data-test-subj="fieldList-field" > - - + @@ -4451,7 +4451,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="clientip" data-test-subj="fieldList-field" > - - + @@ -4839,7 +4839,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="event" data-test-subj="fieldList-field" > - - + @@ -5227,7 +5227,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="extension" data-test-subj="fieldList-field" > - - + @@ -5671,7 +5671,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="geo" data-test-subj="fieldList-field" > - - + @@ -6059,7 +6059,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="host" data-test-subj="fieldList-field" > - - + @@ -6503,7 +6503,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="index" data-test-subj="fieldList-field" > - - + @@ -6947,7 +6947,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="ip" data-test-subj="fieldList-field" > - - + @@ -7335,7 +7335,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="machine" data-test-subj="fieldList-field" > - - + @@ -7723,7 +7723,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="memory" data-test-subj="fieldList-field" > - - + @@ -8111,7 +8111,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="message" data-test-subj="fieldList-field" > - - + @@ -8555,7 +8555,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="phpmemory" data-test-subj="fieldList-field" > - - + @@ -8943,7 +8943,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="referer" data-test-subj="fieldList-field" > - - + @@ -9387,7 +9387,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="request" data-test-subj="fieldList-field" > - - + @@ -9831,7 +9831,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="response" data-test-subj="fieldList-field" > - - + @@ -10275,7 +10275,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="tags" data-test-subj="fieldList-field" > - - + @@ -10719,7 +10719,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="timestamp" data-test-subj="fieldList-field" > - - + @@ -11148,7 +11148,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="url" data-test-subj="fieldList-field" > - - + @@ -11592,7 +11592,7 @@ exports[`Siderbar component Renders sidebar component 1`] = ` data-attr-field="utc_time" data-test-subj="fieldList-field" > - - + @@ -11971,6 +11971,6 @@ exports[`Siderbar component Renders sidebar component 1`] = ` - + `; diff --git a/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap b/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap index d22ac352b4..a223888b9b 100644 --- a/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap +++ b/public/components/event_analytics/explorer/visualizations/config_panel/__tests__/__snapshots__/config_panel.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Config panel component Renders config panel with visualization data 1`] = ` - - - - + @@ -8279,7 +8279,7 @@ exports[`Config panel component Renders config panel with visualization data 1`]
- -
-
+ @@ -9358,7 +9358,7 @@ exports[`Config panel component Renders config panel with visualization data 1`]
-
-
+ @@ -9734,7 +9734,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] - + @@ -9754,7 +9754,7 @@ exports[`Config panel component Renders config panel with visualization data 1`]
- -
- + @@ -10828,7 +10828,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -11102,7 +11102,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -11180,7 +11180,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] - + @@ -11200,7 +11200,7 @@ exports[`Config panel component Renders config panel with visualization data 1`]
- -
- + @@ -12327,7 +12327,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -12398,7 +12398,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -13383,7 +13383,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -13624,7 +13624,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -13865,7 +13865,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -14106,7 +14106,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] className="euiSpacer euiSpacer--s" /> - - + @@ -14353,7 +14353,7 @@ exports[`Config panel component Renders config panel with visualization data 1`] - + @@ -14373,7 +14373,7 @@ exports[`Config panel component Renders config panel with visualization data 1`]
-
- + - + - + `; diff --git a/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap b/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap index b9931d0f30..4866f91f5f 100644 --- a/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap +++ b/public/components/event_analytics/explorer/visualizations/count_distribution/__tests__/__snapshots__/count_distribution.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Count distribution component Renders count distribution component with data 1`] = ` - `; -exports[`Count distribution component Renders empty count distribution component 1`] = ``; +exports[`Count distribution component Renders empty count distribution component 1`] = ``; diff --git a/public/components/integrations/components/__tests__/create_integration_helpers.test.ts b/public/components/integrations/components/__tests__/create_integration_helpers.test.ts index 71ccc99bf6..2bf7c76663 100644 --- a/public/components/integrations/components/__tests__/create_integration_helpers.test.ts +++ b/public/components/integrations/components/__tests__/create_integration_helpers.test.ts @@ -3,17 +3,17 @@ * SPDX-License-Identifier: Apache-2.0 */ +import { HttpResponse, HttpSetup } from '../../../../../../../src/core/public'; +import { coreStartMock } from '../../../../../test/__mocks__/coreMocks'; import { checkDataSourceName, - doTypeValidation, + doExistingDataSourceValidation, doNestedPropertyValidation, doPropertyValidation, + doTypeValidation, fetchDataSourceMappings, fetchIntegrationMappings, - doExistingDataSourceValidation, } from '../create_integration_helpers'; -import * as create_integration_helpers from '../create_integration_helpers'; -import { HttpSetup } from '../../../../../../../src/core/public'; describe('doTypeValidation', () => { it('should return true if required type is not specified', () => { @@ -261,73 +261,88 @@ describe('fetchIntegrationMappings', () => { describe('doExistingDataSourceValidation', () => { it('Catches and returns checkDataSourceName errors', async () => { - const mockHttp = {} as Partial; - jest - .spyOn(create_integration_helpers, 'checkDataSourceName') - .mockReturnValue({ ok: false, errors: ['mock'] }); - - const result = doExistingDataSourceValidation('target', 'name', 'type', mockHttp as HttpSetup); - - await expect(result).resolves.toHaveProperty('ok', false); + coreStartMock.http.post = jest.fn(() => + Promise.resolve(({ + logs: { mappings: { properties: { test: true } } }, + } as unknown) as HttpResponse) + ); + coreStartMock.http.get = jest.fn(() => + Promise.resolve(({ + data: { mappings: { logs: { template: { mappings: { properties: { test: true } } } } } }, + statusCode: 200, + } as unknown) as HttpResponse) + ); + + const result = await doExistingDataSourceValidation('ss4o_metrics-test-test', 'target', 'logs'); + + expect(result).toHaveProperty('ok', false); }); it('Catches data stream fetch errors', async () => { - const mockHttp = {} as Partial; - jest.spyOn(create_integration_helpers, 'checkDataSourceName').mockReturnValue({ ok: true }); - jest.spyOn(create_integration_helpers, 'fetchDataSourceMappings').mockResolvedValue(null); - jest - .spyOn(create_integration_helpers, 'fetchIntegrationMappings') - .mockResolvedValue({ test: { template: { mappings: {} } } }); - - const result = doExistingDataSourceValidation('target', 'name', 'type', mockHttp as HttpSetup); - - await expect(result).resolves.toHaveProperty('ok', false); + coreStartMock.http.post = jest.fn(() => + Promise.resolve(({ + mock: 'resp', + } as unknown) as HttpResponse) + ); + + coreStartMock.http.get = jest.fn(() => + Promise.resolve(({ + data: { mappings: { logs: { template: { mappings: { properties: { test: true } } } } } }, + statusCode: 200, + } as unknown) as HttpResponse) + ); + + const result = await doExistingDataSourceValidation('ss4o_logs-test-test', 'target', 'logs'); + expect(result).toHaveProperty('ok', false); }); it('Catches integration fetch errors', async () => { - const mockHttp = {} as Partial; - jest.spyOn(create_integration_helpers, 'checkDataSourceName').mockReturnValue({ ok: true }); - jest - .spyOn(create_integration_helpers, 'fetchDataSourceMappings') - .mockResolvedValue({ test: { properties: {} } }); - jest.spyOn(create_integration_helpers, 'fetchIntegrationMappings').mockResolvedValue(null); - - const result = doExistingDataSourceValidation('target', 'name', 'type', mockHttp as HttpSetup); - - await expect(result).resolves.toHaveProperty('ok', false); + coreStartMock.http.post = jest.fn(() => + Promise.resolve(({ + logs: { mappings: { properties: { test: true } } }, + } as unknown) as HttpResponse) + ); + coreStartMock.http.get = jest.fn(() => + Promise.resolve(({ + mock: 'resp', + } as unknown) as HttpResponse) + ); + + const result = await doExistingDataSourceValidation('ss4o_logs-test-test', 'target', 'logs'); + expect(result).toHaveProperty('ok', false); }); it('Catches type validation issues', async () => { - const mockHttp = {} as Partial; - jest.spyOn(create_integration_helpers, 'checkDataSourceName').mockReturnValue({ ok: true }); - jest - .spyOn(create_integration_helpers, 'fetchDataSourceMappings') - .mockResolvedValue({ test: { properties: {} } }); - jest - .spyOn(create_integration_helpers, 'fetchIntegrationMappings') - .mockResolvedValue({ test: { template: { mappings: {} } } }); - jest - .spyOn(create_integration_helpers, 'doPropertyValidation') - .mockReturnValue({ ok: false, errors: ['mock'] }); - - const result = doExistingDataSourceValidation('target', 'name', 'type', mockHttp as HttpSetup); - - await expect(result).resolves.toHaveProperty('ok', false); + coreStartMock.http.post = jest.fn(() => + Promise.resolve(({ + logs: { mappings: { properties: { test: true } } }, + } as unknown) as HttpResponse) + ); + coreStartMock.http.get = jest.fn(() => + Promise.resolve(({ + data: { mappings: { template: { mappings: { properties: { test: true } } } } }, + statusCode: 200, + } as unknown) as HttpResponse) + ); + + const result = await doExistingDataSourceValidation('ss4o_logs-test-test', 'target', 'logs'); + expect(result).toHaveProperty('ok', false); }); it('Returns no errors if everything passes', async () => { - const mockHttp = {} as Partial; - jest.spyOn(create_integration_helpers, 'checkDataSourceName').mockReturnValue({ ok: true }); - jest - .spyOn(create_integration_helpers, 'fetchDataSourceMappings') - .mockResolvedValue({ test: { properties: {} } }); - jest - .spyOn(create_integration_helpers, 'fetchIntegrationMappings') - .mockResolvedValue({ test: { template: { mappings: {} } } }); - jest.spyOn(create_integration_helpers, 'doPropertyValidation').mockReturnValue({ ok: true }); - - const result = doExistingDataSourceValidation('target', 'name', 'type', mockHttp as HttpSetup); - - await expect(result).resolves.toHaveProperty('ok', true); + coreStartMock.http.post = jest.fn(() => + Promise.resolve(({ + logs: { mappings: { properties: { test: true } } }, + } as unknown) as HttpResponse) + ); + coreStartMock.http.get = jest.fn(() => + Promise.resolve(({ + data: { mappings: { logs: { template: { mappings: { properties: { test: true } } } } } }, + statusCode: 200, + } as unknown) as HttpResponse) + ); + + const result = await doExistingDataSourceValidation('ss4o_logs-test-test', 'target', 'logs'); + expect(result).toHaveProperty('ok', true); }); }); diff --git a/public/components/metrics/sidebar/__tests__/__snapshots__/searchbar.test.tsx.snap b/public/components/metrics/sidebar/__tests__/__snapshots__/searchbar.test.tsx.snap index 1db2b355b7..a22b6b5f7b 100644 --- a/public/components/metrics/sidebar/__tests__/__snapshots__/searchbar.test.tsx.snap +++ b/public/components/metrics/sidebar/__tests__/__snapshots__/searchbar.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Search Bar Component Search Side Bar Component with available metrics 1 } } > -
-
+ `; @@ -165,7 +165,7 @@ exports[`Search Bar Component Search Side Bar Component with no available metric } } > -
-
+ `; diff --git a/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap b/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap index 0b9c405df1..898fc9dfd0 100644 --- a/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap +++ b/public/components/metrics/sidebar/__tests__/__snapshots__/sidebar.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = ` } } > - + - +
-
+ @@ -244,7 +244,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = `
- - + @@ -364,7 +364,7 @@ exports[`Side Bar Component renders Side Bar Component 1`] = ` className="euiSpacer euiSpacer--s" /> - - +
-
+ `; diff --git a/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export.test.tsx.snap b/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export.test.tsx.snap index 41ad92b3a0..5a8ed3fb75 100644 --- a/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export.test.tsx.snap +++ b/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Export Metrics Panel Component renders Export Metrics Panel Component 1 } } > - + - + `; diff --git a/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export_panel.test.tsx.snap b/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export_panel.test.tsx.snap index e65a3237bc..b961492493 100644 --- a/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export_panel.test.tsx.snap +++ b/public/components/metrics/top_menu/__tests__/__snapshots__/metrics_export_panel.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Export Metrics Panel Component renders Export Metrics Panel Component 1 } } > - - + `; diff --git a/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap b/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap index 4ed0c0b16d..cb3497bdcf 100644 --- a/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap +++ b/public/components/metrics/top_menu/__tests__/__snapshots__/top_menu.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Metrics Top Menu Component renders Top Menu Component when enabled 1`] } } > - + - + - + - + `; diff --git a/public/components/metrics/view/__tests__/__snapshots__/empty_view.test.tsx.snap b/public/components/metrics/view/__tests__/__snapshots__/empty_view.test.tsx.snap index b8a327d4bb..c9427636e0 100644 --- a/public/components/metrics/view/__tests__/__snapshots__/empty_view.test.tsx.snap +++ b/public/components/metrics/view/__tests__/__snapshots__/empty_view.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Empty View Component renders empty view container without metrics 1`] = ` - +
-
+ `; diff --git a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap index 95aa7ab329..1b862c66cc 100644 --- a/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap +++ b/public/components/metrics/view/__tests__/__snapshots__/metrics_grid.test.tsx.snap @@ -12,7 +12,7 @@ exports[`Metrics Grid Component renders Metrics Grid Component 1`] = ` } } > - - - - + + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap index 1529919ed1..4ef2438dcc 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/bar.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Veritcal Bar component Renders veritcal bar component 1`] = ` - - + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap index bb2075dc0f..10c63f396a 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/gauge.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Gauge component Renders gauge component 1`] = ` - - - - + + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap index 013b2106b6..96158b2b1a 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/heatmap.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Heatmap component Renders heatmap component 1`] = ` - - + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap index f56257ba03..944dcc5f6b 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/histogram.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Histogram component Renders histogram component 1`] = ` - - + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap index fd5d086b17..1382d0f088 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/horizontal_bar.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Horizontal bar component Renders horizontal bar component 1`] = ` - - + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap index 87f23bc1d4..314d2a1869 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/line.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Line component Renders line component 1`] = ` - - + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap index 0d2c4eea3b..a95c6602b7 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/metrics.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Metrics component Renders Metrics component 1`] = ` - - - - + + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap index 67b8a13606..568f866a5e 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/pie.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Pie component Renders pie component 1`] = ` - - + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap index a0e8bf52ab..66fd31ddf8 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/text.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Text component Renders text component 1`] = ` - - + `; diff --git a/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap b/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap index 483149850d..be76152d91 100644 --- a/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap +++ b/public/components/visualizations/charts/__tests__/__snapshots__/treemap.test.tsx.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Treemap component Renders treemap component 1`] = ` - - + `; diff --git a/test/jest.config.js b/test/jest.config.js index b6fc147c15..b992902385 100644 --- a/test/jest.config.js +++ b/test/jest.config.js @@ -21,9 +21,6 @@ module.exports = { '/test/', '/public/requests/', ], - transform: { - '^.+\\.tsx?$': ['ts-jest', { diagnostics: false }], - }, transformIgnorePatterns: ['/node_modules'], moduleNameMapper: { '\\.(css|less|sass|scss)$': '/test/__mocks__/styleMock.js', diff --git a/yarn.lock b/yarn.lock index 0b53baf837..14dbb9f39f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -158,25 +158,6 @@ gud "^1.0.0" warning "^4.0.3" -"@jest/schemas@^29.6.3": - version "29.6.3" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" - integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== - dependencies: - "@sinclair/typebox" "^0.27.8" - -"@jest/types@^29.6.3": - version "29.6.3" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" - integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== - dependencies: - "@jest/schemas" "^29.6.3" - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^17.0.8" - chalk "^4.0.0" - "@juggle/resize-observer@^3.3.1": version "3.4.0" resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60" @@ -230,11 +211,6 @@ redux-thunk "^2.4.2" reselect "^4.1.8" -"@sinclair/typebox@^0.27.8": - version "0.27.8" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" - integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== - "@testing-library/user-event@^14.5.1": version "14.5.1" resolved "https://registry.yarnpkg.com/@testing-library/user-event/-/user-event-14.5.1.tgz#27337d72046d5236b32fd977edee3f74c71d332f" @@ -274,25 +250,6 @@ dependencies: "@types/unist" "^2" -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" - integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== - -"@types/istanbul-lib-report@*": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" - integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.0": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" - integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== - dependencies: - "@types/istanbul-lib-report" "*" - "@types/mime@^3.0.1": version "3.0.1" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-3.0.1.tgz#5f8f2bca0a5863cb69bc0b0acd88c96cb1d4ae10" @@ -378,18 +335,6 @@ resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.8.tgz#bb197b9639aa1a04cf464a617fe800cccd92ad5c" integrity sha512-d0XxK3YTObnWVp6rZuev3c49+j4Lo8g4L1ZRm9z5L0xpoZycUPshHgczK5gsUMaZOstjVYYi09p5gYvUtfChYw== -"@types/yargs-parser@*": - version "21.0.0" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.0.tgz#0c60e537fa790f5f9472ed2776c2b71ec117351b" - integrity sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA== - -"@types/yargs@^17.0.8": - version "17.0.24" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.24.tgz#b3ef8d50ad4aa6aecf6ddc97c580a00f5aa11902" - integrity sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw== - dependencies: - "@types/yargs-parser" "*" - "@types/yauzl@^2.9.1": version "2.10.0" resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.0.tgz#b3248295276cf8c6f153ebe6a9aba0c988cb2599" @@ -667,13 +612,6 @@ browser-stdout@1.3.1: resolved "https://registry.yarnpkg.com/browser-stdout/-/browser-stdout-1.3.1.tgz#baa559ee14ced73452229bad7326467c61fabd60" integrity sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw== -bs-logger@0.x: - version "0.2.6" - resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" - integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== - dependencies: - fast-json-stable-stringify "2.x" - buffer-crc32@~0.2.3: version "0.2.13" resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242" @@ -734,7 +672,7 @@ chalk@^2.1.0, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0, chalk@^4.1.0: +chalk@^4.1.0: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== @@ -1410,7 +1348,7 @@ fast-deep-equal@^3.1.1: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: +fast-json-stable-stringify@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== @@ -1644,7 +1582,7 @@ globals@^12.1.0: dependencies: type-fest "^0.8.1" -graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.9: +graceful-fs@^4.1.6, graceful-fs@^4.2.0: version "4.2.11" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== @@ -2016,18 +1954,6 @@ jest-dom@^4.0.0: resolved "https://registry.yarnpkg.com/jest-dom/-/jest-dom-4.0.0.tgz#94eba3cbc6576e7bd6821867c92d176de28920eb" integrity sha512-gBxYZlZB1Jgvf2gP2pRfjjUWF8woGBHj/g5rAQgFPB/0K2atGuhVcPO+BItyjWeKg9zM+dokgcMOH01vrWVMFA== -jest-util@^29.0.0: - version "29.6.3" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-29.6.3.tgz#e15c3eac8716440d1ed076f09bc63ace1aebca63" - integrity sha512-QUjna/xSy4B32fzcKTSz1w7YYzgiHrjjJjevdRf61HYk998R5vVMMNmrHESYZVDS5DSWs+1srPLPKxXPkeSDOA== - dependencies: - "@jest/types" "^29.6.3" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" - "js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" @@ -2078,11 +2004,6 @@ json-stringify-safe@~5.0.1: resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== -json5@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== - jsonfile@^6.0.1: version "6.1.0" resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" @@ -2196,11 +2117,6 @@ lodash.flow@^3.5.0: resolved "https://registry.yarnpkg.com/lodash.flow/-/lodash.flow-3.5.0.tgz#87bf40292b8cf83e4e8ce1a3ae4209e20071675a" integrity sha512-ff3BX/tSioo+XojX4MOsOMhJw0nZoUEF011LX8g8d3gvjVbxd89cCio4BCXronjxcTUIJUoqKEUA+n4CqvvRPw== -lodash.memoize@4.x: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" - integrity sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag== - lodash.once@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" @@ -2262,11 +2178,6 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -make-error@1.x: - version "1.3.6" - resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== - markdown-escapes@^1.0.0: version "1.0.4" resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.4.tgz#c95415ef451499d7602b91095f3c8e8975f78535" @@ -2616,7 +2527,7 @@ performance-now@^2.1.0: resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3, picomatch@^2.3.1: +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== @@ -3334,20 +3245,6 @@ truncate-utf8-bytes@^1.0.0: dependencies: utf8-byte-length "^1.0.1" -ts-jest@^29.1.0: - version "29.1.1" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-29.1.1.tgz#f58fe62c63caf7bfcc5cc6472082f79180f0815b" - integrity sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA== - dependencies: - bs-logger "0.x" - fast-json-stable-stringify "2.x" - jest-util "^29.0.0" - json5 "^2.2.3" - lodash.memoize "4.x" - make-error "1.x" - semver "^7.5.3" - yargs-parser "^21.0.1" - tslib@^1.9.0: version "1.14.1" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" @@ -3687,11 +3584,6 @@ yargs-parser@^20.2.2: resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== -yargs-parser@^21.0.1: - version "21.1.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" - integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== - yargs-unparser@2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/yargs-unparser/-/yargs-unparser-2.0.0.tgz#f131f9226911ae5d9ad38c432fe809366c2325eb"