diff --git a/.changeset/stupid-nails-drive.md b/.changeset/stupid-nails-drive.md new file mode 100644 index 0000000000..fb4fb12f40 --- /dev/null +++ b/.changeset/stupid-nails-drive.md @@ -0,0 +1,6 @@ +--- +'@backstage/plugin-pagerduty': patch +'@backstage/plugin-splunk-on-call': patch +--- + +Remove redundant `node-fetch` dependency diff --git a/plugins/pagerduty/package.json b/plugins/pagerduty/package.json index d4a7c17653..4e009a523e 100644 --- a/plugins/pagerduty/package.json +++ b/plugins/pagerduty/package.json @@ -59,8 +59,7 @@ "@types/jest": "^26.0.7", "@types/node": "^14.14.32", "cross-fetch": "^3.0.6", - "msw": "^0.35.0", - "node-fetch": "^2.6.1" + "msw": "^0.35.0" }, "files": [ "dist" diff --git a/plugins/pagerduty/src/setupTests.ts b/plugins/pagerduty/src/setupTests.ts index 28a35d2b06..c1d649f2ad 100644 --- a/plugins/pagerduty/src/setupTests.ts +++ b/plugins/pagerduty/src/setupTests.ts @@ -13,4 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + 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 efd429bc69..88de8e6491 100644 --- a/plugins/splunk-on-call/package.json +++ b/plugins/splunk-on-call/package.json @@ -59,8 +59,7 @@ "@types/luxon": "^2.0.4", "@types/node": "^14.14.32", "cross-fetch": "^3.0.6", - "msw": "^0.35.0", - "node-fetch": "^2.6.1" + "msw": "^0.35.0" }, "configSchema": "config.d.ts", "files": [ diff --git a/plugins/splunk-on-call/src/setupTests.ts b/plugins/splunk-on-call/src/setupTests.ts index 28a35d2b06..c1d649f2ad 100644 --- a/plugins/splunk-on-call/src/setupTests.ts +++ b/plugins/splunk-on-call/src/setupTests.ts @@ -13,4 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + import '@testing-library/jest-dom'; +import 'cross-fetch/polyfill';