Remove undici and old mocks
Signed-off-by: enyineer <nico.enking@gmail.com>
This commit is contained in:
@@ -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(),
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user