Type entityMock as Entity and remove casts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2026-05-20 00:02:02 +02:00
parent e5da0ab00f
commit ac1a4ab3c9
+2 -2
View File
@@ -39,7 +39,7 @@ import { Entity } from '@backstage/catalog-model';
jest.setTimeout(30_000);
describe('Entity page', () => {
const entityMock = {
const entityMock: Entity = {
metadata: {
namespace: 'default',
annotations: {
@@ -108,7 +108,7 @@ describe('Entity page', () => {
};
const mockCatalogApi = catalogApiMock({
entities: [entityMock as Entity],
entities: [entityMock],
});
const mockStarredEntitiesApi = new MockStarredEntitiesApi();