This is an automated email from the ASF dual-hosted git repository.
hainenber pushed a change to branch
dependabot/npm_and_yarn/superset-frontend/packages/superset-ui-core/fetch-mock-12.6.0
in repository https://gitbox.apache.org/repos/asf/superset.git
from 25af9c4bcb chore(deps): update package-lock.json
add 6ccdf752b1 feat: refactor tests to work with `fetch-mock` v12
No new revisions were added by this update.
Summary of changes:
superset-frontend/package-lock.json | 20 +-
superset-frontend/package.json | 2 +-
.../components/ListViewCard/ImageLoader.test.tsx | 25 ++-
.../test/chart/clients/ChartClient.test.ts | 5 +-
.../test/connection/SupersetClient.test.ts | 17 +-
.../test/connection/SupersetClientClass.test.ts | 112 +++++-----
.../test/connection/callApi/callApi.test.ts | 144 +++++++------
.../callApi/callApiAndParseWithTimeout.test.ts | 9 +-
.../test/connection/callApi/parseResponse.test.ts | 17 +-
.../query/api/legacy/getDatasourceMetadata.test.ts | 5 +-
.../test/query/api/legacy/getFormData.test.ts | 5 +-
.../test/query/api/v1/getChartData.test.ts | 6 +-
.../test/query/api/v1/makeApi.test.ts | 20 +-
.../test/time-comparison/fetchTimeRange.test.ts | 29 ++-
.../spec/helpers/jsDomWithFetchAPI.ts | 1 +
superset-frontend/spec/helpers/shim.tsx | 4 +
.../src/SqlLab/actions/sqlLab.test.js | 229 +++++++++++++--------
.../AceEditorWrapper/useAnnotations.test.ts | 35 ++--
.../AceEditorWrapper/useKeywords.test.ts | 6 +-
.../EditorAutoSync/EditorAutoSync.test.tsx | 42 ++--
.../ExploreCtasResultsButton.test.tsx | 4 +-
.../components/PopEditorTab/PopEditorTab.test.tsx | 14 +-
.../QueryAutoRefresh/QueryAutoRefresh.test.tsx | 6 +-
.../components/QueryHistory/QueryHistory.test.tsx | 8 +-
.../SqlLab/components/ResultSet/ResultSet.test.tsx | 14 +-
.../ShareSqlLabQuery/ShareSqlLabQuery.test.tsx | 21 +-
.../SqlLab/components/SqlEditor/SqlEditor.test.tsx | 18 +-
.../SqlEditorLeftBar/SqlEditorLeftBar.test.tsx | 10 +-
.../TabbedSqlEditors/TabbedSqlEditors.test.tsx | 2 +-
.../components/TableElement/TableElement.test.tsx | 58 ++++--
.../components/TablePreview/TablePreview.test.tsx | 26 ++-
.../components/Chart/DrillBy/DrillByModal.test.tsx | 36 ++--
.../Chart/DrillBy/DrillBySubmenu.test.tsx | 2 +-
.../Chart/DrillDetail/DrillDetailPane.test.tsx | 2 +-
.../src/components/Chart/chartActions.test.js | 51 +++--
.../DatabaseSelector/DatabaseSelector.test.tsx | 41 ++--
.../ChangeDatasourceModal.test.jsx | 8 +-
.../DatasourceModal/DatasourceModal.test.jsx | 26 +--
.../DatasourceModal.useModal.test.tsx | 4 +-
.../DatasetUsageTab/DatasetUsageTab.test.tsx | 4 +-
.../tests/DatasourceEditor.test.tsx | 31 ++-
.../tests/DatasourceEditor.test.utils.tsx | 29 ++-
.../tests/DatasourceEditorCurrency.test.tsx | 9 +-
.../components/ImportModal/ImportModal.test.tsx | 12 +-
.../src/components/ListView/ListView.test.tsx | 3 -
.../TableSelector/TableSelector.test.tsx | 2 +-
.../src/components/Tag/utils.test.tsx | 24 +--
.../OverwriteConfirmModal.test.tsx | 24 ++-
.../PropertiesModal/PropertiesModal.test.tsx | 2 +-
.../URLShortLinkButton/URLShortLinkButton.test.tsx | 13 +-
.../menu/ShareMenuItems/ShareMenuItems.test.tsx | 12 +-
.../ScopingModal/ScopingModal.test.tsx | 10 +-
.../nativeFilters/FilterBar/FilterBar.test.tsx | 25 ++-
.../FilterBarSettings/FilterBarSettings.test.tsx | 4 +-
.../FiltersConfigForm/ColumnSelect.test.tsx | 2 +-
.../FiltersConfigForm/DatasetSelect.test.tsx | 6 +-
.../src/explore/actions/datasourcesActions.test.ts | 8 +-
.../src/explore/actions/saveModalActions.test.ts | 81 +++++---
.../DataTablesPane/test/DataTablesPane.test.tsx | 14 +-
.../test/ResultsPaneOnDashboard.test.tsx | 2 +-
.../DataTablesPane/test/SamplesPane.test.tsx | 2 +-
.../ExploreChartHeader/ExploreChartHeader.test.tsx | 3 -
.../ExploreChartPanel/ExploreChartPanel.test.jsx | 6 +-
.../ExploreViewContainer.test.tsx | 12 +-
.../PropertiesModal/PropertiesModal.test.tsx | 2 +-
.../src/explore/components/SaveModal.test.jsx | 22 +-
.../AnnotationLayer.test.tsx | 6 +-
.../DatasourceControl/DatasourceControl.test.tsx | 143 +++++--------
...AdhocFilterEditPopoverSimpleTabContent.test.tsx | 20 +-
.../explore/components/controls/ViewQuery.test.tsx | 61 +++---
.../components/controls/ViewQueryModal.test.tsx | 59 +++---
.../src/extensions/ExtensionsList.test.tsx | 16 +-
.../src/extensions/ExtensionsManager.test.ts | 4 +-
.../src/extensions/ExtensionsStartup.test.tsx | 4 +-
.../src/features/alerts/AlertReportModal.test.tsx | 74 ++++---
.../databases/DatabaseModal/index.test.tsx | 9 +-
.../UploadDataModel/UploadDataModal.test.tsx | 19 +-
.../AddDataset/EditDataset/EditDataset.test.tsx | 2 +-
.../AddDataset/LeftPanel/LeftPanel.test.tsx | 6 +-
.../metadataBar/useDatasetMetadataBar.test.tsx | 2 +-
.../src/features/home/ChartTable.test.tsx | 4 +-
.../src/features/home/DashboardTable.test.tsx | 8 +-
.../src/features/home/RightMenu.test.tsx | 55 +++--
.../reports/ReportModal/ReportModal.test.tsx | 6 +-
.../features/rls/RowLevelSecurityModal.test.tsx | 34 +--
.../src/features/tags/BulkTagModal.test.tsx | 2 +-
.../src/features/themes/ThemeModal.test.tsx | 35 ++--
superset-frontend/src/features/themes/api.test.ts | 32 +--
.../src/hooks/apiResources/dashboards.test.ts | 2 +-
.../hooks/apiResources/databaseFunctions.test.ts | 12 +-
.../src/hooks/apiResources/queries.test.ts | 12 +-
.../src/hooks/apiResources/queryApi.test.ts | 10 +-
.../hooks/apiResources/queryValidations.test.ts | 16 +-
.../src/hooks/apiResources/schemas.test.ts | 46 +++--
.../src/hooks/apiResources/sqlEditorTabs.test.ts | 18 +-
.../src/hooks/apiResources/sqlLab.test.ts | 22 +-
.../src/hooks/apiResources/tables.test.ts | 53 +++--
.../src/middleware/asyncEvent.test.ts | 38 ++--
.../pages/AlertReportList/AlertReportList.test.jsx | 14 +-
.../AnnotationLayerList.test.jsx | 14 +-
superset-frontend/src/pages/Chart/Chart.test.tsx | 31 +--
.../src/pages/ChartCreation/ChartCreation.test.tsx | 12 +-
.../pages/ChartList/ChartList.cardview.test.tsx | 4 +-
.../pages/ChartList/ChartList.listview.test.tsx | 33 +--
.../pages/ChartList/ChartList.permissions.test.tsx | 22 +-
.../src/pages/ChartList/ChartList.test.tsx | 64 +++---
.../src/pages/ChartList/ChartList.testHelpers.tsx | 30 ++-
.../pages/CssTemplateList/CssTemplateList.test.jsx | 14 +-
.../src/pages/DashboardList/DashboardList.test.jsx | 10 +-
.../ExecutionLogList/ExecutionLogList.test.tsx | 8 +-
.../src/pages/GroupsList/GroupsList.test.tsx | 15 +-
superset-frontend/src/pages/Home/Home.test.tsx | 26 +--
.../src/pages/RolesList/RolesList.test.tsx | 6 +-
.../RowLevelSecurityList.test.tsx | 52 ++---
.../pages/SavedQueryList/SavedQueryList.test.tsx | 61 +++---
superset-frontend/src/pages/SqlLab/SqlLab.test.tsx | 10 +-
.../src/pages/ThemeList/ThemeList.test.tsx | 4 +-
.../src/pages/UserInfo/UserInfo.test.tsx | 6 +-
.../UserRegistrations/UserRegistrations.test.tsx | 2 +-
.../src/pages/UsersList/UsersList.test.tsx | 9 +-
120 files changed, 1520 insertions(+), 1205 deletions(-)