From ac1a4ab3c9ed86556a776edb1d0dfa12f9d5d2b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 20 May 2026 00:02:02 +0200 Subject: [PATCH] Type entityMock as Entity and remove casts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Fredrik Adelöw --- plugins/catalog/src/alpha/pages.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/catalog/src/alpha/pages.test.tsx b/plugins/catalog/src/alpha/pages.test.tsx index 2b66704eab..3123826bd5 100644 --- a/plugins/catalog/src/alpha/pages.test.tsx +++ b/plugins/catalog/src/alpha/pages.test.tsx @@ -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();