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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user