diff --git a/.changeset/popular-buckets-sin.md b/.changeset/popular-buckets-sin.md new file mode 100644 index 0000000000..c2085b31bb --- /dev/null +++ b/.changeset/popular-buckets-sin.md @@ -0,0 +1,5 @@ +--- +'@backstage/cli': patch +--- + +Make sure to include a `fetch` environment for `jsdom` in `jest` tests diff --git a/.changeset/thick-buckets-smile.md b/.changeset/thick-buckets-smile.md new file mode 100644 index 0000000000..eca55e3d09 --- /dev/null +++ b/.changeset/thick-buckets-smile.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-bitrise': patch +--- + +Remove `cross-fetch` dependency as it's not used diff --git a/packages/cli/config/jest.js b/packages/cli/config/jest.js index 0e74b00d5a..1756b37db2 100644 --- a/packages/cli/config/jest.js +++ b/packages/cli/config/jest.js @@ -194,9 +194,16 @@ async function getProjectConfig(targetPath, extraConfig) { ...getRoleConfig(closestPkgJson?.backstage?.role), }; + options.setupFilesAfterEnv = options.setupFilesAfterEnv || []; + + if (options.testEnvironment === require.resolve('jest-environment-jsdom')) { + // FIXME https://github.com/jsdom/jsdom/issues/1724 + options.setupFilesAfterEnv.unshift(require.resolve('cross-fetch/polyfill')); + } + // Use src/setupTests.ts as the default location for configuring test env if (fs.existsSync(path.resolve(targetPath, 'src/setupTests.ts'))) { - options.setupFilesAfterEnv = ['/setupTests.ts']; + options.setupFilesAfterEnv.push('/setupTests.ts'); } const config = Object.assign(options, ...pkgJsonConfigs); diff --git a/packages/cli/package.json b/packages/cli/package.json index 1eec30b892..49cd4e619c 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -74,6 +74,7 @@ "chalk": "^4.0.0", "chokidar": "^3.3.1", "commander": "^9.1.0", + "cross-fetch": "^3.1.5", "cross-spawn": "^7.0.3", "css-loader": "^6.5.1", "diff": "^5.0.0", diff --git a/packages/cli/templates/default-plugin/package.json.hbs b/packages/cli/templates/default-plugin/package.json.hbs index 10f893d7dc..463fc6ea90 100644 --- a/packages/cli/templates/default-plugin/package.json.hbs +++ b/packages/cli/templates/default-plugin/package.json.hbs @@ -48,8 +48,7 @@ "@testing-library/react": "{{versionQuery '@testing-library/react' '12.1.3'}}", "@testing-library/user-event": "{{versionQuery '@testing-library/user-event' '14.0.0'}}", "@types/node": "{{versionQuery '@types/node' '16.11.26'}}", - "msw": "{{versionQuery 'msw' '1.0.0'}}", - "cross-fetch": "{{versionQuery 'cross-fetch' '3.1.5'}}" + "msw": "{{versionQuery 'msw' '1.0.0'}}" }, "files": [ "dist" diff --git a/packages/cli/templates/default-plugin/src/setupTests.ts b/packages/cli/templates/default-plugin/src/setupTests.ts index 48c09b5346..7b0828bfa8 100644 --- a/packages/cli/templates/default-plugin/src/setupTests.ts +++ b/packages/cli/templates/default-plugin/src/setupTests.ts @@ -1,2 +1 @@ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/packages/core-app-api/package.json b/packages/core-app-api/package.json index 932bf05e95..36da8b1913 100644 --- a/packages/core-app-api/package.json +++ b/packages/core-app-api/package.json @@ -59,7 +59,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/zen-observable": "^0.8.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0", "react-router-beta": "npm:react-router@6.0.0-beta.0", "react-router-dom-beta": "npm:react-router-dom@6.0.0-beta.0", diff --git a/packages/core-app-api/src/setupTests.ts b/packages/core-app-api/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/packages/core-app-api/src/setupTests.ts +++ b/packages/core-app-api/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/packages/core-components/package.json b/packages/core-components/package.json index 694cc2615a..7220bda894 100644 --- a/packages/core-components/package.json +++ b/packages/core-components/package.json @@ -101,7 +101,6 @@ "@types/react-virtualized-auto-sizer": "^1.0.1", "@types/react-window": "^1.8.5", "@types/zen-observable": "^0.8.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/packages/core-components/src/setupTests.ts b/packages/core-components/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/packages/core-components/src/setupTests.ts +++ b/packages/core-components/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/packages/core-plugin-api/package.json b/packages/core-plugin-api/package.json index 7fe56c1a6d..9e9214a376 100644 --- a/packages/core-plugin-api/package.json +++ b/packages/core-plugin-api/package.json @@ -70,7 +70,6 @@ "@types/node": "^16.11.26", "@types/prop-types": "^15.7.3", "@types/zen-observable": "^0.8.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/packages/core-plugin-api/src/setupTests.ts b/packages/core-plugin-api/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/packages/core-plugin-api/src/setupTests.ts +++ b/packages/core-plugin-api/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/packages/integration-react/package.json b/packages/integration-react/package.json index e18793e1cb..f48204bf55 100644 --- a/packages/integration-react/package.json +++ b/packages/integration-react/package.json @@ -48,7 +48,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/packages/integration-react/src/setupTests.ts b/packages/integration-react/src/setupTests.ts index 427556fe26..992b60d3a4 100644 --- a/packages/integration-react/src/setupTests.ts +++ b/packages/integration-react/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/packages/test-utils/src/setupTests.ts b/packages/test-utils/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/packages/test-utils/src/setupTests.ts +++ b/packages/test-utils/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/adr/src/setupTests.ts b/plugins/adr/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/adr/src/setupTests.ts +++ b/plugins/adr/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/airbrake/package.json b/plugins/airbrake/package.json index 68ce60b703..d08c5ddecd 100644 --- a/plugins/airbrake/package.json +++ b/plugins/airbrake/package.json @@ -50,7 +50,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/airbrake/src/api/ProductionApi.test.ts b/plugins/airbrake/src/api/ProductionApi.test.ts index f09127b4c2..92593e42bc 100644 --- a/plugins/airbrake/src/api/ProductionApi.test.ts +++ b/plugins/airbrake/src/api/ProductionApi.test.ts @@ -37,7 +37,6 @@ describe('The production Airbrake API', () => { ); const groups = await productionApi.fetchGroups('123456'); - expect(groups).toStrictEqual(mockGroupsData); }); diff --git a/plugins/airbrake/src/setupTests.ts b/plugins/airbrake/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/airbrake/src/setupTests.ts +++ b/plugins/airbrake/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/allure/package.json b/plugins/allure/package.json index 96315b0f5c..9f1b33d6d0 100644 --- a/plugins/allure/package.json +++ b/plugins/allure/package.json @@ -49,7 +49,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/allure/src/setupTests.ts b/plugins/allure/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/allure/src/setupTests.ts +++ b/plugins/allure/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/analytics-module-ga/package.json b/plugins/analytics-module-ga/package.json index c8ddd7fa15..2081f80938 100644 --- a/plugins/analytics-module-ga/package.json +++ b/plugins/analytics-module-ga/package.json @@ -49,7 +49,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/analytics-module-ga/src/setupTests.ts b/plugins/analytics-module-ga/src/setupTests.ts index 4ed20ac097..bd29200219 100644 --- a/plugins/analytics-module-ga/src/setupTests.ts +++ b/plugins/analytics-module-ga/src/setupTests.ts @@ -14,7 +14,6 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; // eslint-disable-next-line no-restricted-imports import { TextEncoder } from 'util'; diff --git a/plugins/analytics-module-ga4/package.json b/plugins/analytics-module-ga4/package.json index 655ad8a5e2..d0c7b471f6 100644 --- a/plugins/analytics-module-ga4/package.json +++ b/plugins/analytics-module-ga4/package.json @@ -46,7 +46,6 @@ "@types/jest": "^28.1.3", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/analytics-module-ga4/src/setupTests.ts b/plugins/analytics-module-ga4/src/setupTests.ts index 4ed20ac097..bd29200219 100644 --- a/plugins/analytics-module-ga4/src/setupTests.ts +++ b/plugins/analytics-module-ga4/src/setupTests.ts @@ -14,7 +14,6 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; // eslint-disable-next-line no-restricted-imports import { TextEncoder } from 'util'; diff --git a/plugins/apache-airflow/src/setupTests.ts b/plugins/apache-airflow/src/setupTests.ts index 427556fe26..992b60d3a4 100644 --- a/plugins/apache-airflow/src/setupTests.ts +++ b/plugins/apache-airflow/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/apollo-explorer/package.json b/plugins/apollo-explorer/package.json index 5f9b714a63..716b5e1662 100644 --- a/plugins/apollo-explorer/package.json +++ b/plugins/apollo-explorer/package.json @@ -47,7 +47,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/apollo-explorer/src/setupTests.ts b/plugins/apollo-explorer/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/apollo-explorer/src/setupTests.ts +++ b/plugins/apollo-explorer/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/azure-devops/package.json b/plugins/azure-devops/package.json index ed3e15fd64..7961f3da22 100644 --- a/plugins/azure-devops/package.json +++ b/plugins/azure-devops/package.json @@ -58,7 +58,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/azure-devops/src/setupTests.ts b/plugins/azure-devops/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/azure-devops/src/setupTests.ts +++ b/plugins/azure-devops/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/azure-sites/package.json b/plugins/azure-sites/package.json index fc4f0e6695..cc4ca409e3 100644 --- a/plugins/azure-sites/package.json +++ b/plugins/azure-sites/package.json @@ -60,7 +60,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/azure-sites/src/setupTests.ts b/plugins/azure-sites/src/setupTests.ts index 2b5b615b19..7a459ed24e 100644 --- a/plugins/azure-sites/src/setupTests.ts +++ b/plugins/azure-sites/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/badges/package.json b/plugins/badges/package.json index bb5de6730f..50a0d03603 100644 --- a/plugins/badges/package.json +++ b/plugins/badges/package.json @@ -51,8 +51,7 @@ "@backstage/dev-utils": "workspace:^", "@backstage/test-utils": "workspace:^", "@testing-library/jest-dom": "^5.16.5", - "@types/node": "^16.11.26", - "cross-fetch": "^3.1.5" + "@types/node": "^16.11.26" }, "files": [ "dist" diff --git a/plugins/badges/src/setupTests.ts b/plugins/badges/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/badges/src/setupTests.ts +++ b/plugins/badges/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/bazaar/package.json b/plugins/bazaar/package.json index 1c80770d17..6818d1fc20 100644 --- a/plugins/bazaar/package.json +++ b/plugins/bazaar/package.json @@ -51,8 +51,7 @@ "@backstage/cli": "workspace:^", "@backstage/dev-utils": "workspace:^", "@testing-library/jest-dom": "^5.10.1", - "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5" + "@types/react": "^16.13.1 || ^17.0.0" }, "files": [ "dist" diff --git a/plugins/bazaar/src/setupTests.ts b/plugins/bazaar/src/setupTests.ts index 427556fe26..992b60d3a4 100644 --- a/plugins/bazaar/src/setupTests.ts +++ b/plugins/bazaar/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/bitrise/package.json b/plugins/bitrise/package.json index 660885b8e8..d54549c63d 100644 --- a/plugins/bitrise/package.json +++ b/plugins/bitrise/package.json @@ -31,7 +31,6 @@ "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.9.1", "@material-ui/lab": "4.0.0-alpha.61", - "cross-fetch": "^3.1.5", "lodash": "^4.17.21", "luxon": "^3.0.0", "qs": "^6.9.6", diff --git a/plugins/bitrise/src/setupTests.ts b/plugins/bitrise/src/setupTests.ts index 427556fe26..992b60d3a4 100644 --- a/plugins/bitrise/src/setupTests.ts +++ b/plugins/bitrise/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/catalog-import/package.json b/plugins/catalog-import/package.json index f695ade589..4b1832b9b0 100644 --- a/plugins/catalog-import/package.json +++ b/plugins/catalog-import/package.json @@ -69,7 +69,6 @@ "@testing-library/react": "^12.1.3", "@testing-library/react-hooks": "^8.0.0", "@testing-library/user-event": "^14.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/catalog-import/src/setupTests.ts b/plugins/catalog-import/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/plugins/catalog-import/src/setupTests.ts +++ b/plugins/catalog-import/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/catalog-react/package.json b/plugins/catalog-react/package.json index ff15596f0f..be26c2f7ac 100644 --- a/plugins/catalog-react/package.json +++ b/plugins/catalog-react/package.json @@ -89,7 +89,6 @@ "@testing-library/user-event": "^14.0.0", "@types/jwt-decode": "^3.1.0", "@types/zen-observable": "^0.8.0", - "cross-fetch": "^3.1.5", "react-test-renderer": "^16.13.1" }, "files": [ diff --git a/plugins/catalog-react/src/setupTests.ts b/plugins/catalog-react/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/plugins/catalog-react/src/setupTests.ts +++ b/plugins/catalog-react/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/catalog-unprocessed-entities/package.json b/plugins/catalog-unprocessed-entities/package.json index 22ca2f1fa1..3db678c7e1 100644 --- a/plugins/catalog-unprocessed-entities/package.json +++ b/plugins/catalog-unprocessed-entities/package.json @@ -44,7 +44,6 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^14.0.0", "@types/node": "*", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/catalog-unprocessed-entities/src/setupTests.ts b/plugins/catalog-unprocessed-entities/src/setupTests.ts index 73dd8dce47..865308e634 100644 --- a/plugins/catalog-unprocessed-entities/src/setupTests.ts +++ b/plugins/catalog-unprocessed-entities/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/catalog/package.json b/plugins/catalog/package.json index 3992ac4e32..4505481ee1 100644 --- a/plugins/catalog/package.json +++ b/plugins/catalog/package.json @@ -70,8 +70,7 @@ "@testing-library/dom": "^8.0.0", "@testing-library/jest-dom": "^5.10.1", "@testing-library/react": "^12.1.3", - "@testing-library/user-event": "^14.0.0", - "cross-fetch": "^3.1.5" + "@testing-library/user-event": "^14.0.0" }, "files": [ "dist" diff --git a/plugins/catalog/src/setupTests.ts b/plugins/catalog/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/plugins/catalog/src/setupTests.ts +++ b/plugins/catalog/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/code-climate/package.json b/plugins/code-climate/package.json index 7c2b53919a..e4001e1c3a 100644 --- a/plugins/code-climate/package.json +++ b/plugins/code-climate/package.json @@ -51,7 +51,6 @@ "@types/luxon": "^3.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/code-climate/src/setupTests.ts b/plugins/code-climate/src/setupTests.ts index eb4654b869..c2f27937b3 100644 --- a/plugins/code-climate/src/setupTests.ts +++ b/plugins/code-climate/src/setupTests.ts @@ -17,4 +17,3 @@ /* eslint-disable @backstage/no-undeclared-imports */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/code-coverage/package.json b/plugins/code-coverage/package.json index 3fce3b0aab..f518982c29 100644 --- a/plugins/code-coverage/package.json +++ b/plugins/code-coverage/package.json @@ -57,7 +57,6 @@ "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", "@types/recharts": "^1.8.15", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/code-coverage/src/setupTests.ts b/plugins/code-coverage/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/code-coverage/src/setupTests.ts +++ b/plugins/code-coverage/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/codescene/package.json b/plugins/codescene/package.json index 59113b07f6..5b1574a871 100644 --- a/plugins/codescene/package.json +++ b/plugins/codescene/package.json @@ -49,7 +49,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/codescene/src/setupTests.ts b/plugins/codescene/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/codescene/src/setupTests.ts +++ b/plugins/codescene/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/config-schema/package.json b/plugins/config-schema/package.json index 31e67a3929..95eadb5dff 100644 --- a/plugins/config-schema/package.json +++ b/plugins/config-schema/package.json @@ -52,7 +52,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/config-schema/src/setupTests.ts b/plugins/config-schema/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/config-schema/src/setupTests.ts +++ b/plugins/config-schema/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/entity-feedback/package.json b/plugins/entity-feedback/package.json index 45cf76f89d..82c054d662 100644 --- a/plugins/entity-feedback/package.json +++ b/plugins/entity-feedback/package.json @@ -56,7 +56,6 @@ "@testing-library/react-hooks": "^8.0.1", "@testing-library/user-event": "^14.0.0", "@types/node": "*", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/entity-feedback/src/setupTests.ts b/plugins/entity-feedback/src/setupTests.ts index bf4855cb6e..c30f1d15cb 100644 --- a/plugins/entity-feedback/src/setupTests.ts +++ b/plugins/entity-feedback/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/entity-validation/package.json b/plugins/entity-validation/package.json index 7be7a4637f..df54b312cb 100644 --- a/plugins/entity-validation/package.json +++ b/plugins/entity-validation/package.json @@ -63,7 +63,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/entity-validation/src/setupTests.ts b/plugins/entity-validation/src/setupTests.ts index 73dd8dce47..865308e634 100644 --- a/plugins/entity-validation/src/setupTests.ts +++ b/plugins/entity-validation/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/firehydrant/package.json b/plugins/firehydrant/package.json index cc85d247c4..4f57fd6d63 100644 --- a/plugins/firehydrant/package.json +++ b/plugins/firehydrant/package.json @@ -50,7 +50,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/firehydrant/src/setupTests.ts b/plugins/firehydrant/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/firehydrant/src/setupTests.ts +++ b/plugins/firehydrant/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/gcalendar/package.json b/plugins/gcalendar/package.json index cbe20392b5..3bcfc4b2f5 100644 --- a/plugins/gcalendar/package.json +++ b/plugins/gcalendar/package.json @@ -57,7 +57,6 @@ "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", "@types/sanitize-html": "^2.6.2", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/gcalendar/src/setupTests.ts b/plugins/gcalendar/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/gcalendar/src/setupTests.ts +++ b/plugins/gcalendar/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/git-release-manager/package.json b/plugins/git-release-manager/package.json index 791d367726..58004f47e4 100644 --- a/plugins/git-release-manager/package.json +++ b/plugins/git-release-manager/package.json @@ -54,7 +54,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/recharts": "^1.8.15", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/git-release-manager/src/setupTests.ts b/plugins/git-release-manager/src/setupTests.ts index 427556fe26..992b60d3a4 100644 --- a/plugins/git-release-manager/src/setupTests.ts +++ b/plugins/git-release-manager/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/github-deployments/package.json b/plugins/github-deployments/package.json index 25e5b90514..aa1fad18c3 100644 --- a/plugins/github-deployments/package.json +++ b/plugins/github-deployments/package.json @@ -54,7 +54,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/github-deployments/src/setupTests.ts b/plugins/github-deployments/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/github-deployments/src/setupTests.ts +++ b/plugins/github-deployments/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/github-issues/package.json b/plugins/github-issues/package.json index 777a740c60..013cca4910 100644 --- a/plugins/github-issues/package.json +++ b/plugins/github-issues/package.json @@ -52,7 +52,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/github-issues/src/setupTests.ts b/plugins/github-issues/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/github-issues/src/setupTests.ts +++ b/plugins/github-issues/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/github-pull-requests-board/package.json b/plugins/github-pull-requests-board/package.json index 739f88a6bb..9a97f04511 100644 --- a/plugins/github-pull-requests-board/package.json +++ b/plugins/github-pull-requests-board/package.json @@ -63,7 +63,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/github-pull-requests-board/src/setupTests.ts b/plugins/github-pull-requests-board/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/github-pull-requests-board/src/setupTests.ts +++ b/plugins/github-pull-requests-board/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/gocd/package.json b/plugins/gocd/package.json index a6fa535eef..0177580577 100644 --- a/plugins/gocd/package.json +++ b/plugins/gocd/package.json @@ -61,7 +61,6 @@ "@types/luxon": "^3.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/gocd/src/setupTests.ts b/plugins/gocd/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/gocd/src/setupTests.ts +++ b/plugins/gocd/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/graphql-voyager/package.json b/plugins/graphql-voyager/package.json index 21e536ef63..253de68c61 100644 --- a/plugins/graphql-voyager/package.json +++ b/plugins/graphql-voyager/package.json @@ -48,7 +48,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/graphql-voyager/src/setupTests.ts b/plugins/graphql-voyager/src/setupTests.ts index 73dd8dce47..865308e634 100644 --- a/plugins/graphql-voyager/src/setupTests.ts +++ b/plugins/graphql-voyager/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/home/package.json b/plugins/home/package.json index 9a7b7adde1..f851cd0e1a 100644 --- a/plugins/home/package.json +++ b/plugins/home/package.json @@ -70,7 +70,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react-grid-layout": "^1.3.2", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/home/src/setupTests.ts b/plugins/home/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/home/src/setupTests.ts +++ b/plugins/home/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/ilert/package.json b/plugins/ilert/package.json index cdb6e1fc81..ad97bfc124 100644 --- a/plugins/ilert/package.json +++ b/plugins/ilert/package.json @@ -55,7 +55,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/ilert/src/setupTests.ts b/plugins/ilert/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/ilert/src/setupTests.ts +++ b/plugins/ilert/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/kafka/package.json b/plugins/kafka/package.json index cc5fb252dc..6a810465ef 100644 --- a/plugins/kafka/package.json +++ b/plugins/kafka/package.json @@ -52,7 +52,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "jest-when": "^3.1.0", "msw": "^1.0.0" }, diff --git a/plugins/kafka/src/setupTests.ts b/plugins/kafka/src/setupTests.ts index b201a9c83e..28a35d2b06 100644 --- a/plugins/kafka/src/setupTests.ts +++ b/plugins/kafka/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/kubernetes/package.json b/plugins/kubernetes/package.json index c9480629fa..77f4f59403 100644 --- a/plugins/kubernetes/package.json +++ b/plugins/kubernetes/package.json @@ -71,7 +71,6 @@ "@testing-library/react-hooks": "^8.0.0", "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/kubernetes/src/setupTests.ts b/plugins/kubernetes/src/setupTests.ts index f7752030ed..a373310a1a 100644 --- a/plugins/kubernetes/src/setupTests.ts +++ b/plugins/kubernetes/src/setupTests.ts @@ -16,7 +16,6 @@ import '@testing-library/jest-dom'; // eslint-disable-next-line no-restricted-imports import { TextDecoder, TextEncoder } from 'util'; -import 'cross-fetch/polyfill'; // These are missing from jest-node, so not available on global. Object.defineProperty(global, 'TextEncoder', { diff --git a/plugins/lighthouse/package.json b/plugins/lighthouse/package.json index 46e0d31ca6..958e7e8277 100644 --- a/plugins/lighthouse/package.json +++ b/plugins/lighthouse/package.json @@ -62,7 +62,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/lighthouse/src/setupTests.ts b/plugins/lighthouse/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/plugins/lighthouse/src/setupTests.ts +++ b/plugins/lighthouse/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/linguist/package.json b/plugins/linguist/package.json index b21b72d88c..d16acd27bf 100644 --- a/plugins/linguist/package.json +++ b/plugins/linguist/package.json @@ -58,7 +58,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/linguist/src/setupTests.ts b/plugins/linguist/src/setupTests.ts index 2b5b615b19..7a459ed24e 100644 --- a/plugins/linguist/src/setupTests.ts +++ b/plugins/linguist/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/microsoft-calendar/package.json b/plugins/microsoft-calendar/package.json index 1e715f1161..59987a2d70 100644 --- a/plugins/microsoft-calendar/package.json +++ b/plugins/microsoft-calendar/package.json @@ -72,7 +72,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/microsoft-calendar/src/setupTests.ts b/plugins/microsoft-calendar/src/setupTests.ts index 73dd8dce47..865308e634 100644 --- a/plugins/microsoft-calendar/src/setupTests.ts +++ b/plugins/microsoft-calendar/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/newrelic-dashboard/package.json b/plugins/newrelic-dashboard/package.json index e798e76acd..5e73e51708 100644 --- a/plugins/newrelic-dashboard/package.json +++ b/plugins/newrelic-dashboard/package.json @@ -41,8 +41,7 @@ "@backstage/cli": "workspace:^", "@backstage/dev-utils": "workspace:^", "@testing-library/jest-dom": "^5.10.1", - "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5" + "@types/react": "^16.13.1 || ^17.0.0" }, "files": [ "dist" diff --git a/plugins/newrelic-dashboard/src/setupTests.ts b/plugins/newrelic-dashboard/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/newrelic-dashboard/src/setupTests.ts +++ b/plugins/newrelic-dashboard/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/octopus-deploy/package.json b/plugins/octopus-deploy/package.json index 251b4b282d..0e2b5dead1 100644 --- a/plugins/octopus-deploy/package.json +++ b/plugins/octopus-deploy/package.json @@ -48,7 +48,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/octopus-deploy/src/setupTests.ts b/plugins/octopus-deploy/src/setupTests.ts index 73dd8dce47..865308e634 100644 --- a/plugins/octopus-deploy/src/setupTests.ts +++ b/plugins/octopus-deploy/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/org-react/package.json b/plugins/org-react/package.json index bca914c8ae..2ec7314c5d 100644 --- a/plugins/org-react/package.json +++ b/plugins/org-react/package.json @@ -57,7 +57,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/org-react/src/setupTests.ts b/plugins/org-react/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/org-react/src/setupTests.ts +++ b/plugins/org-react/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/org/package.json b/plugins/org/package.json index 1f174b59e7..9c1f3afb2b 100644 --- a/plugins/org/package.json +++ b/plugins/org/package.json @@ -61,7 +61,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/org/src/setupTests.ts b/plugins/org/src/setupTests.ts index b201a9c83e..28a35d2b06 100644 --- a/plugins/org/src/setupTests.ts +++ b/plugins/org/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/pagerduty/package.json b/plugins/pagerduty/package.json index 25280776a9..70193b25c0 100644 --- a/plugins/pagerduty/package.json +++ b/plugins/pagerduty/package.json @@ -63,7 +63,6 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/pagerduty/src/setupTests.ts b/plugins/pagerduty/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/plugins/pagerduty/src/setupTests.ts +++ b/plugins/pagerduty/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/periskop/package.json b/plugins/periskop/package.json index a54af6d622..47fc02b4bf 100644 --- a/plugins/periskop/package.json +++ b/plugins/periskop/package.json @@ -52,7 +52,6 @@ "@types/luxon": "^3.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/periskop/src/setupTests.ts b/plugins/periskop/src/setupTests.ts index 2b5b615b19..7a459ed24e 100644 --- a/plugins/periskop/src/setupTests.ts +++ b/plugins/periskop/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/playlist/package.json b/plugins/playlist/package.json index 152ed03652..68001ace31 100644 --- a/plugins/playlist/package.json +++ b/plugins/playlist/package.json @@ -64,7 +64,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0", "swr": "^2.0.0" }, diff --git a/plugins/playlist/src/setupTests.ts b/plugins/playlist/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/playlist/src/setupTests.ts +++ b/plugins/playlist/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/puppetdb/package.json b/plugins/puppetdb/package.json index 35b7427b9a..9fe990ca8c 100644 --- a/plugins/puppetdb/package.json +++ b/plugins/puppetdb/package.json @@ -59,7 +59,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.1" }, "files": [ diff --git a/plugins/puppetdb/src/setupTests.ts b/plugins/puppetdb/src/setupTests.ts index 73dd8dce47..865308e634 100644 --- a/plugins/puppetdb/src/setupTests.ts +++ b/plugins/puppetdb/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/scaffolder/package.json b/plugins/scaffolder/package.json index 7824c2544e..4468e4eb9b 100644 --- a/plugins/scaffolder/package.json +++ b/plugins/scaffolder/package.json @@ -108,7 +108,6 @@ "@types/humanize-duration": "^3.18.1", "@types/json-schema": "^7.0.9", "@types/node": "^16.11.26", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/scaffolder/src/setupTests.ts b/plugins/scaffolder/src/setupTests.ts index 5499f969dc..8608e5b98e 100644 --- a/plugins/scaffolder/src/setupTests.ts +++ b/plugins/scaffolder/src/setupTests.ts @@ -15,7 +15,6 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; const { EventSourcePolyfill } = jest.requireMock('event-source-polyfill'); global.EventSource = EventSourcePolyfill; diff --git a/plugins/search/package.json b/plugins/search/package.json index ef2f38301b..e6ac1cab90 100644 --- a/plugins/search/package.json +++ b/plugins/search/package.json @@ -66,7 +66,6 @@ "@testing-library/react-hooks": "^8.0.0", "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", - "cross-fetch": "^3.1.5", "history": "^5.0.0", "msw": "^1.0.0" }, diff --git a/plugins/search/src/setupTests.ts b/plugins/search/src/setupTests.ts index b201a9c83e..28a35d2b06 100644 --- a/plugins/search/src/setupTests.ts +++ b/plugins/search/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/shortcuts/package.json b/plugins/shortcuts/package.json index 0a10277b22..c8c7668e46 100644 --- a/plugins/shortcuts/package.json +++ b/plugins/shortcuts/package.json @@ -52,7 +52,6 @@ "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", "@types/zen-observable": "^0.8.2", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/shortcuts/src/setupTests.ts b/plugins/shortcuts/src/setupTests.ts index 427556fe26..992b60d3a4 100644 --- a/plugins/shortcuts/src/setupTests.ts +++ b/plugins/shortcuts/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/splunk-on-call/package.json b/plugins/splunk-on-call/package.json index 4846cae62e..7e4711ba78 100644 --- a/plugins/splunk-on-call/package.json +++ b/plugins/splunk-on-call/package.json @@ -62,7 +62,6 @@ "@types/luxon": "^3.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "configSchema": "config.d.ts", diff --git a/plugins/splunk-on-call/src/setupTests.ts b/plugins/splunk-on-call/src/setupTests.ts index c1d649f2ad..963c0f188b 100644 --- a/plugins/splunk-on-call/src/setupTests.ts +++ b/plugins/splunk-on-call/src/setupTests.ts @@ -15,4 +15,3 @@ */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/stack-overflow/src/setupTests.ts b/plugins/stack-overflow/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/stack-overflow/src/setupTests.ts +++ b/plugins/stack-overflow/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/stackstorm/package.json b/plugins/stackstorm/package.json index 2164721e2d..5dadcff02a 100644 --- a/plugins/stackstorm/package.json +++ b/plugins/stackstorm/package.json @@ -58,7 +58,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/stackstorm/src/setupTests.ts b/plugins/stackstorm/src/setupTests.ts index 73dd8dce47..865308e634 100644 --- a/plugins/stackstorm/src/setupTests.ts +++ b/plugins/stackstorm/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/tech-insights/package.json b/plugins/tech-insights/package.json index 9d1ef0e52a..f32e618e34 100644 --- a/plugins/tech-insights/package.json +++ b/plugins/tech-insights/package.json @@ -57,7 +57,6 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/tech-insights/src/setupTests.ts b/plugins/tech-insights/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/tech-insights/src/setupTests.ts +++ b/plugins/tech-insights/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/techdocs-addons-test-utils/package.json b/plugins/techdocs-addons-test-utils/package.json index 8f28c1524a..9a95a13473 100644 --- a/plugins/techdocs-addons-test-utils/package.json +++ b/plugins/techdocs-addons-test-utils/package.json @@ -63,7 +63,6 @@ "@testing-library/react": "^12.1.3", "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/techdocs-addons-test-utils/src/setupTests.ts b/plugins/techdocs-addons-test-utils/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/techdocs-addons-test-utils/src/setupTests.ts +++ b/plugins/techdocs-addons-test-utils/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/techdocs-module-addons-contrib/package.json b/plugins/techdocs-module-addons-contrib/package.json index 55566693c8..6f2b390b79 100644 --- a/plugins/techdocs-module-addons-contrib/package.json +++ b/plugins/techdocs-module-addons-contrib/package.json @@ -64,7 +64,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/techdocs-module-addons-contrib/src/setupTests.ts b/plugins/techdocs-module-addons-contrib/src/setupTests.ts index 9bb3e72355..326d2ed212 100644 --- a/plugins/techdocs-module-addons-contrib/src/setupTests.ts +++ b/plugins/techdocs-module-addons-contrib/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/todo/package.json b/plugins/todo/package.json index d20f32b16e..21926190d1 100644 --- a/plugins/todo/package.json +++ b/plugins/todo/package.json @@ -57,7 +57,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/todo/src/setupTests.ts b/plugins/todo/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/todo/src/setupTests.ts +++ b/plugins/todo/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/vault/package.json b/plugins/vault/package.json index f0e34fbedf..6b3ebaf5ab 100644 --- a/plugins/vault/package.json +++ b/plugins/vault/package.json @@ -60,7 +60,6 @@ "@testing-library/user-event": "^14.0.0", "@types/node": "*", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/vault/src/setupTests.ts b/plugins/vault/src/setupTests.ts index b201a9c83e..28a35d2b06 100644 --- a/plugins/vault/src/setupTests.ts +++ b/plugins/vault/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/plugins/xcmetrics/package.json b/plugins/xcmetrics/package.json index 77a2763138..6937115c5e 100644 --- a/plugins/xcmetrics/package.json +++ b/plugins/xcmetrics/package.json @@ -52,7 +52,6 @@ "@types/luxon": "^3.0.0", "@types/node": "^16.11.26", "@types/react": "^16.13.1 || ^17.0.0", - "cross-fetch": "^3.1.5", "msw": "^1.0.0" }, "files": [ diff --git a/plugins/xcmetrics/src/setupTests.ts b/plugins/xcmetrics/src/setupTests.ts index fc6dbd98f8..7435872609 100644 --- a/plugins/xcmetrics/src/setupTests.ts +++ b/plugins/xcmetrics/src/setupTests.ts @@ -14,4 +14,3 @@ * limitations under the License. */ import '@testing-library/jest-dom'; -import 'cross-fetch/polyfill'; diff --git a/yarn.lock b/yarn.lock index 73595ff313..2aae5cde7f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3970,6 +3970,7 @@ __metadata: chalk: ^4.0.0 chokidar: ^3.3.1 commander: ^9.1.0 + cross-fetch: ^3.1.5 cross-spawn: ^7.0.3 css-loader: ^6.5.1 del: ^7.0.0 @@ -4130,7 +4131,6 @@ __metadata: "@types/prop-types": ^15.7.3 "@types/react": ^16.13.1 || ^17.0.0 "@types/zen-observable": ^0.8.0 - cross-fetch: ^3.1.5 history: ^5.0.0 msw: ^1.0.0 prop-types: ^15.7.2 @@ -4292,7 +4292,6 @@ __metadata: "@types/zen-observable": ^0.8.0 ansi-regex: ^6.0.1 classnames: ^2.2.6 - cross-fetch: ^3.1.5 d3-selection: ^3.0.0 d3-shape: ^3.0.0 d3-zoom: ^3.0.0 @@ -4364,7 +4363,6 @@ __metadata: "@types/prop-types": ^15.7.3 "@types/react": ^16.13.1 || ^17.0.0 "@types/zen-observable": ^0.8.0 - cross-fetch: ^3.1.5 history: ^5.0.0 msw: ^1.0.0 prop-types: ^15.7.2 @@ -4527,7 +4525,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -4695,7 +4692,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -4727,7 +4723,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -4756,7 +4751,6 @@ __metadata: "@types/jest": ^28.1.3 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-ga4: ^2.0.0 react-use: ^17.2.4 @@ -4788,7 +4782,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 prop-types: ^15.7.2 react-ga: ^3.3.0 @@ -4905,7 +4898,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 use-deep-compare-effect: ^1.8.1 @@ -5086,7 +5078,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 humanize-duration: ^3.27.0 luxon: ^3.0.0 msw: ^1.0.0 @@ -5151,7 +5142,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 react-use: ^17.2.4 @@ -5209,7 +5199,6 @@ __metadata: "@material-ui/lab": 4.0.0-alpha.61 "@testing-library/jest-dom": ^5.16.5 "@types/node": ^16.11.26 - cross-fetch: ^3.1.5 react-use: ^17.2.4 peerDependencies: react: ^16.13.1 || ^17.0.0 @@ -5259,7 +5248,6 @@ __metadata: "@material-ui/pickers": ^3.3.10 "@testing-library/jest-dom": ^5.10.1 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^3.0.0 material-ui-search-bar: ^1.0.0 react-hook-form: ^7.13.0 @@ -5307,7 +5295,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 "@types/recharts": ^1.8.15 - cross-fetch: ^3.1.5 lodash: ^4.17.21 luxon: ^3.0.0 msw: ^1.0.0 @@ -5851,7 +5838,6 @@ __metadata: "@testing-library/react-hooks": ^8.0.0 "@testing-library/user-event": ^14.0.0 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 git-url-parse: ^13.0.0 js-base64: ^3.6.0 lodash: ^4.17.21 @@ -5951,7 +5937,6 @@ __metadata: "@types/react": ^16.13.1 || ^17.0.0 "@types/zen-observable": ^0.8.0 classnames: ^2.2.6 - cross-fetch: ^3.1.5 jwt-decode: ^3.1.0 lodash: ^4.17.21 material-ui-popup-state: ^1.9.3 @@ -5987,7 +5972,6 @@ __metadata: "@testing-library/react": ^12.1.3 "@testing-library/user-event": ^14.0.0 "@types/node": "*" - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -6025,7 +6009,6 @@ __metadata: "@testing-library/react": ^12.1.3 "@testing-library/user-event": ^14.0.0 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 history: ^5.0.0 lodash: ^4.17.21 pluralize: ^8.0.0 @@ -6182,7 +6165,6 @@ __metadata: "@types/luxon": ^3.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 humanize-duration: ^3.27.1 luxon: ^3.0.0 msw: ^1.0.0 @@ -6248,7 +6230,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 "@types/recharts": ^1.8.15 - cross-fetch: ^3.1.5 highlight.js: ^10.6.0 luxon: ^3.0.0 msw: ^1.0.0 @@ -6283,7 +6264,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 rc-progress: 3.4.1 react-use: ^17.2.4 @@ -6317,7 +6297,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 jsonschema: ^1.2.6 msw: ^1.0.0 react-use: ^17.2.4 @@ -6555,7 +6534,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -6595,7 +6573,6 @@ __metadata: "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 "@uiw/react-codemirror": ^4.9.3 - cross-fetch: ^3.1.5 lodash: ^4.17.21 msw: ^1.0.0 react-use: ^17.2.4 @@ -6855,7 +6832,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 react-use: ^17.2.4 @@ -6995,7 +6971,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 "@types/recharts": ^1.8.15 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 qs: ^6.10.1 @@ -7071,7 +7046,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 react-use: ^17.2.4 @@ -7106,7 +7080,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 octokit: ^2.0.4 @@ -7141,7 +7114,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 p-limit: ^4.0.0 @@ -7209,7 +7181,6 @@ __metadata: "@types/luxon": ^3.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 lodash: ^4.17.21 luxon: ^3.0.0 msw: ^1.0.0 @@ -7301,7 +7272,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 graphql-voyager: ^1.0.0-rc.31 msw: ^1.0.0 react-use: ^17.2.4 @@ -7401,7 +7371,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 "@types/react-grid-layout": ^1.3.2 - cross-fetch: ^3.1.5 lodash: ^4.17.21 msw: ^1.0.0 react-grid-layout: ^1.3.4 @@ -7440,7 +7409,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 humanize-duration: ^3.26.0 luxon: ^3.0.0 msw: ^1.0.0 @@ -7574,7 +7542,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 jest-when: ^3.1.0 msw: ^1.0.0 react-use: ^17.2.4 @@ -7675,7 +7642,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 cronstrue: ^2.2.0 - cross-fetch: ^3.1.5 js-yaml: ^4.0.0 kubernetes-models: ^4.1.0 lodash: ^4.17.21 @@ -7739,7 +7705,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -7813,7 +7778,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^2.0.2 msw: ^1.0.0 react-use: ^17.2.4 @@ -7848,7 +7812,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 classnames: ^2.3.1 - cross-fetch: ^3.1.5 dompurify: ^2.3.6 lodash: ^4.17.21 luxon: ^3.0.0 @@ -7878,7 +7841,6 @@ __metadata: "@material-ui/lab": 4.0.0-alpha.61 "@testing-library/jest-dom": ^5.10.1 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 react-use: ^17.2.4 peerDependencies: react: ^16.13.1 || ^17.0.0 @@ -7990,7 +7952,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -8023,7 +7984,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -8059,7 +8019,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 p-limit: ^3.1.0 pluralize: ^8.0.0 @@ -8097,7 +8056,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 classnames: ^2.2.6 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 react-use: ^17.2.4 @@ -8152,7 +8110,6 @@ __metadata: "@types/luxon": ^3.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 react-use: ^17.2.4 @@ -8352,7 +8309,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 lodash: ^4.17.21 msw: ^1.0.0 pluralize: ^8.0.0 @@ -8416,7 +8372,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.1 react-use: ^17.2.4 peerDependencies: @@ -8802,7 +8757,6 @@ __metadata: "@types/react": ^16.13.1 || ^17.0.0 "@uiw/react-codemirror": ^4.9.3 classnames: ^2.2.6 - cross-fetch: ^3.1.5 event-source-polyfill: ^1.0.31 git-url-parse: ^13.0.0 humanize-duration: ^3.25.1 @@ -9064,7 +9018,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 history: ^5.0.0 msw: ^1.0.0 qs: ^6.9.4 @@ -9135,7 +9088,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 "@types/zen-observable": ^0.8.2 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-hook-form: ^7.12.2 react-use: ^17.2.4 @@ -9244,7 +9196,6 @@ __metadata: "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 classnames: ^2.2.6 - cross-fetch: ^3.1.5 luxon: ^3.0.0 msw: ^1.0.0 react-use: ^17.2.4 @@ -9327,7 +9278,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -9440,7 +9390,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 qs: ^6.9.4 react-use: ^17.2.4 @@ -9511,7 +9460,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 testing-library__dom: ^7.29.4-beta.1 @@ -9582,7 +9530,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 git-url-parse: ^13.0.0 msw: ^1.0.0 photoswipe: ^5.3.7 @@ -9768,7 +9715,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -9885,7 +9831,6 @@ __metadata: "@testing-library/user-event": ^14.0.0 "@types/node": "*" "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 msw: ^1.0.0 react-use: ^17.2.4 peerDependencies: @@ -9917,7 +9862,6 @@ __metadata: "@types/luxon": ^3.0.0 "@types/node": ^16.11.26 "@types/react": ^16.13.1 || ^17.0.0 - cross-fetch: ^3.1.5 lodash: ^4.17.21 luxon: ^3.0.0 msw: ^1.0.0