Skip to content

Commit

Permalink
fix breaking change in 1.30 removing setupRequestMockHandlers
Browse files Browse the repository at this point in the history
setupRequestMockHandlers is removed; use registerMswTestHooks instead.
  • Loading branch information
zhammer committed Aug 24, 2024
1 parent d01d3b9 commit 4bea842
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/aws-catalog-backend/src/RDSEntityProvider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import { DBInstance } from '@aws-sdk/client-rds';
import { getVoidLogger } from '@backstage/backend-common';
import { TaskInvocationDefinition, TaskRunner } from '@backstage/backend-tasks';
import { setupRequestMockHandlers } from '@backstage/backend-test-utils';
import { registerMswTestHooks } from '@backstage/backend-test-utils';
import { ResourceEntity } from '@backstage/catalog-model';
import { ConfigReader } from '@backstage/config';
import { EntityProviderConnection } from '@backstage/plugin-catalog-node';
Expand Down Expand Up @@ -55,7 +55,7 @@ const EXAMPLE_CREDENTIALS = {
};

describe('RDSEntityProvider', () => {
setupRequestMockHandlers(server);
registerMswTestHooks(server);
afterEach(() => jest.resetAllMocks());

it('no provider config', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/
import { getVoidLogger } from '@backstage/backend-common';
import { TaskInvocationDefinition, TaskRunner } from '@backstage/backend-tasks';
import { setupRequestMockHandlers } from '@backstage/backend-test-utils';
import { registerMswTestHooks } from '@backstage/backend-test-utils';
import { GroupEntity, UserEntity } from '@backstage/catalog-model';
import { ConfigReader } from '@backstage/config';
import { EntityProviderConnection } from '@backstage/plugin-catalog-node';
Expand Down Expand Up @@ -69,7 +69,7 @@ const simpleGroupTransformer: OktaGroupTransformer = (
};

describe('GitlabOrgDiscoveryEntityProvider', () => {
setupRequestMockHandlers(server);
registerMswTestHooks(server);
afterEach(() => jest.resetAllMocks());

it('no provider config', () => {
Expand Down

0 comments on commit 4bea842

Please sign in to comment.