Merge pull request #25003 from backstage/revert-24992-freben/no-close

Revert "attempt to fix the `_a.destroy is not a function` error"
This commit is contained in:
Fredrik Adelöw
2024-05-31 09:59:24 +02:00
committed by GitHub
@@ -18,7 +18,11 @@ import {
authServiceFactory,
httpAuthServiceFactory,
} from '@backstage/backend-app-api';
import { mockServices, startTestBackend } from '@backstage/backend-test-utils';
import {
mockServices,
setupRequestMockHandlers,
startTestBackend,
} from '@backstage/backend-test-utils';
import { ResponseError } from '@backstage/errors';
import { JsonObject } from '@backstage/types';
import { HttpResponse, http, passthrough } from 'msw';
@@ -30,8 +34,7 @@ import fetch from 'node-fetch';
describe('credentials', () => {
const worker = setupServer();
beforeAll(() => worker.listen({ onUnhandledRequest: 'error' }));
afterEach(() => worker.resetHandlers());
setupRequestMockHandlers(worker);
it('handles all valid credentials settings', async () => {
const config = {