Remove undici and old mocks

Signed-off-by: enyineer <nico.enking@gmail.com>
This commit is contained in:
enyineer
2025-11-19 10:11:12 +01:00
parent 84a0dff66f
commit 1a483ed02f
4 changed files with 2 additions and 13 deletions
@@ -15,10 +15,10 @@
*/
import { bootstrapEnvProxyAgents } from './proxyBootstrap';
// Avoid mutating the global agents used in other tests
jest.mock('global-agent', () => ({
bootstrap: jest.fn(),
}));
jest.mock('undici', () => ({
setGlobalDispatcher: jest.fn(),
EnvHttpProxyAgent: jest.fn(),
+1 -2
View File
@@ -51,8 +51,7 @@
"handlebars": "^4.7.3",
"inquirer": "^8.2.0",
"ora": "^5.3.0",
"recursive-readdir": "^2.2.2",
"undici": "^7.2.3"
"recursive-readdir": "^2.2.2"
},
"devDependencies": {
"@backstage/backend-test-utils": "workspace:^",
@@ -36,15 +36,6 @@ import {
import { http, HttpResponse, delay } from 'msw';
import { setupServer } from 'msw/node';
// Avoid mutating the global agents used in other tests
jest.mock('global-agent', () => ({
bootstrap: jest.fn(),
}));
jest.mock('undici', () => ({
setGlobalDispatcher: jest.fn(),
EnvHttpProxyAgent: class {},
}));
jest.spyOn(Task, 'log').mockReturnValue(undefined);
jest.spyOn(Task, 'error').mockReturnValue(undefined);
jest.spyOn(Task, 'section').mockReturnValue(undefined);
-1
View File
@@ -3275,7 +3275,6 @@ __metadata:
nodemon: "npm:^3.0.1"
ora: "npm:^5.3.0"
recursive-readdir: "npm:^2.2.2"
undici: "npm:^7.2.3"
bin:
backstage-create-app: bin/backstage-create-app
languageName: unknown