remove most usages of node-fetch

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-11-29 16:54:28 +01:00
parent f19c16fad2
commit 5c9cc05eee
75 changed files with 93 additions and 163 deletions
+1 -2
View File
@@ -77,8 +77,7 @@
"@backstage/errors": "workspace:^",
"@types/http-proxy-middleware": "^1.0.0",
"@types/yup": "^0.32.0",
"msw": "^2.0.0",
"node-fetch": "^2.7.0"
"msw": "^2.0.0"
},
"configSchema": "config.d.ts"
}
@@ -29,7 +29,6 @@ import {
} from '@backstage/config-loader';
import { HttpResponse, http, passthrough } from 'msw';
import { setupServer } from 'msw/node';
import fetch from 'node-fetch';
// this test is stored in its own file to work around the mocked
// http-proxy-middleware module used in the main test file
@@ -25,7 +25,6 @@ import { ResponseError } from '@backstage/errors';
import { JsonObject } from '@backstage/types';
import { HttpResponse, http, passthrough } from 'msw';
import { setupServer } from 'msw/node';
import fetch from 'node-fetch';
// this test is stored in its own file to work around the mocked
// http-proxy-middleware module used in the main test file