refactor(test-utils): deprecate the isDockerDisabledForTests function
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
createServiceFactory,
|
||||
} from '@backstage/backend-plugin-api';
|
||||
import {
|
||||
setupMswHandlers,
|
||||
registerMswTestHooks,
|
||||
startTestBackend,
|
||||
} from '@backstage/backend-test-utils';
|
||||
import {
|
||||
@@ -36,7 +36,7 @@ import fetch from 'node-fetch';
|
||||
|
||||
describe('createRouter reloadable configuration', () => {
|
||||
const server = setupServer();
|
||||
setupMswHandlers(server);
|
||||
registerMswTestHooks(server);
|
||||
|
||||
it('should be able to observe the config', async () => {
|
||||
// Grab the subscriber function and use mutable config data to mock a config file change
|
||||
|
||||
@@ -20,7 +20,7 @@ import {
|
||||
} from '@backstage/backend-app-api';
|
||||
import {
|
||||
mockServices,
|
||||
setupMswHandlers,
|
||||
registerMswTestHooks,
|
||||
startTestBackend,
|
||||
} from '@backstage/backend-test-utils';
|
||||
import { ResponseError } from '@backstage/errors';
|
||||
@@ -34,7 +34,7 @@ import fetch from 'node-fetch';
|
||||
|
||||
describe('credentials', () => {
|
||||
const worker = setupServer();
|
||||
setupMswHandlers(worker);
|
||||
registerMswTestHooks(worker);
|
||||
|
||||
it('handles all valid credentials settings', async () => {
|
||||
const config = {
|
||||
|
||||
Reference in New Issue
Block a user