refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler

Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-07-10 13:28:48 +02:00
parent 2414d86668
commit 95a3a0b91c
96 changed files with 285 additions and 244 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ import {
} from './tasks';
import {
createMockDirectory,
setupRequestMockHandlers,
setupMswHandlers,
} from '@backstage/backend-test-utils';
import { rest } from 'msw';
import { setupServer } from 'msw/node';
@@ -423,7 +423,7 @@ describe('tasks', () => {
describe('fetchYarnLockSeedTask', () => {
const worker = setupServer();
setupRequestMockHandlers(worker);
setupMswHandlers(worker);
it('should fetch the yarn.lock seed file', async () => {
worker.use(