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
@@ -16,7 +16,7 @@
import { rest } from 'msw';
import { setupServer } from 'msw/node';
import { msw } from '@backstage/test-utils';
import { setupRequestMockHandlers } from '@backstage/test-utils';
import { BitbucketIntegrationConfig } from './config';
import {
getBitbucketDefaultBranch,
@@ -27,7 +27,7 @@ import {
describe('bitbucket core', () => {
const worker = setupServer();
msw.setupDefaultHandlers(worker);
setupRequestMockHandlers(worker);
describe('getBitbucketRequestOptions', () => {
it('inserts a token when needed', () => {