attempt to fix the _a.destroy is not a function error

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-05-30 17:08:44 +02:00
parent ec388a02f2
commit 65b11c1f80
@@ -18,11 +18,7 @@ import {
authServiceFactory,
httpAuthServiceFactory,
} from '@backstage/backend-app-api';
import {
mockServices,
setupRequestMockHandlers,
startTestBackend,
} from '@backstage/backend-test-utils';
import { mockServices, startTestBackend } from '@backstage/backend-test-utils';
import { ResponseError } from '@backstage/errors';
import { JsonObject } from '@backstage/types';
import { HttpResponse, http, passthrough } from 'msw';
@@ -34,7 +30,8 @@ import fetch from 'node-fetch';
describe('credentials', () => {
const worker = setupServer();
setupRequestMockHandlers(worker);
beforeAll(() => worker.listen({ onUnhandledRequest: 'error' }));
afterEach(() => worker.resetHandlers());
it('handles all valid credentials settings', async () => {
const config = {