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
+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);