remove most usages of node-fetch
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user