refactor(test-utils): deprecate the isDockerDisabledForTests function

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-07-10 12:53:32 +02:00
parent 95a3a0b91c
commit b82aff92aa
106 changed files with 329 additions and 272 deletions
@@ -19,7 +19,7 @@ import { KubernetesBackendClient } from './KubernetesBackendClient';
import { rest } from 'msw';
import { UrlPatternDiscovery } from '@backstage/core-app-api';
import { setupServer } from 'msw/node';
import { MockFetchApi, setupMswHandlers } from '@backstage/test-utils';
import { MockFetchApi, registerMswTestHooks } from '@backstage/test-utils';
import {
CustomObjectsByEntityRequest,
KubernetesRequestBody,
@@ -36,7 +36,7 @@ describe('KubernetesBackendClient', () => {
};
let mockResponse: ObjectsByEntityResponse;
const worker = setupServer();
setupMswHandlers(worker);
registerMswTestHooks(worker);
const identityApi = {
getCredentials: jest.fn(),