chore/cli: Replace msw with setupRequestMockHandlers

Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
Johan Haals
2021-10-26 10:38:13 +02:00
parent 2ba4a2caef
commit f1e96dc5b1
29 changed files with 74 additions and 57 deletions
@@ -15,7 +15,7 @@
*/
import { Config, ConfigReader } from '@backstage/config';
import { msw } from '@backstage/test-utils';
import { setupRequestMockHandlers } from '@backstage/test-utils';
import express from 'express';
import { Session } from 'express-session';
import { JWK, JWT } from 'jose';
@@ -52,7 +52,7 @@ const clientMetadata = {
describe('OidcAuthProvider', () => {
const worker = setupServer();
msw.setupDefaultHandlers(worker);
setupRequestMockHandlers(worker);
beforeEach(() => {
jest.clearAllMocks();