Moved test helpers to __testUtils__ folder. Added stringifyEntityRef as a dependency in MembersListCard

Signed-off-by: Robert Bunning <rbunning@webstaurantstore.com>
This commit is contained in:
Robert Bunning
2023-05-03 15:57:05 -04:00
parent ecde474d4c
commit 9ca3e44a06
6 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -28,7 +28,6 @@
"clean": "backstage-cli package clean"
},
"dependencies": {
"@backstage/catalog-client": "workspace:^",
"@backstage/catalog-model": "workspace:^",
"@backstage/core-components": "workspace:^",
"@backstage/core-plugin-api": "workspace:^",
@@ -48,6 +47,7 @@
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
},
"devDependencies": {
"@backstage/catalog-client": "workspace:^",
"@backstage/cli": "workspace:^",
"@backstage/core-app-api": "workspace:^",
"@backstage/dev-utils": "workspace:^",
@@ -23,7 +23,7 @@ import { MemoryRouter } from 'react-router-dom';
import {
groupA,
mockedCatalogApiSupportingGroups,
} from '../../../../test-helpers/catalogMocks';
} from '../../../../__testUtils__/catalogMocks';
import { MembersListCard } from './MembersListCard';
export default {
@@ -33,7 +33,7 @@ import { MembersListCard } from './MembersListCard';
import {
groupA,
mockedCatalogApiSupportingGroups,
} from '../../../../test-helpers/catalogMocks';
} from '../../../../__testUtils__/catalogMocks';
import { permissionApiRef } from '@backstage/plugin-permission-react';
import { EntityLayout } from '@backstage/plugin-catalog';
import { screen } from '@testing-library/react';
@@ -167,7 +167,7 @@ export const MembersListCard = (props: {
groupEntity,
catalogApi,
);
}, [catalogApi, groupEntity]);
}, [catalogApi, groupEntity, showAggregateMembersToggle]);
const {
loading,
error,
+1 -1
View File
@@ -38,7 +38,7 @@ import {
groupEUserOne,
duplicatedUser,
mockedCatalogApiSupportingGroups,
} from '../test-helpers/catalogMocks';
} from '../__testUtils__/catalogMocks';
describe('Helper functions', () => {
it('getAllDesendantMembersForGroupEntity correctly recursively returns all descendant members', async () => {