From 1a91aa53109c972ffc4164d03b343f78ae8a94c6 Mon Sep 17 00:00:00 2001 From: mahula Date: Mon, 19 Jan 2026 12:57:48 +0100 Subject: [PATCH] fix: use 'as const' for isNew literal type in SuggestionList tests --- lib/cypress/component/TipTap/SuggestionList.cy.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cypress/component/TipTap/SuggestionList.cy.tsx b/lib/cypress/component/TipTap/SuggestionList.cy.tsx index 9bb6bedf..d6df6a4c 100644 --- a/lib/cypress/component/TipTap/SuggestionList.cy.tsx +++ b/lib/cypress/component/TipTap/SuggestionList.cy.tsx @@ -31,7 +31,7 @@ describe('SuggestionList Component', () => { }) it('renders "new tag" option with Neu: prefix', () => { - const items = [createTestTag('existing'), { isNew: true, name: 'newtag' }] + const items = [createTestTag('existing'), { isNew: true as const, name: 'newtag' }] const command = cy.stub() mount() @@ -98,7 +98,7 @@ describe('SuggestionList Component', () => { }) it('calls command with new tag item', () => { - const newItem = { isNew: true, name: 'newtag' } + const newItem = { isNew: true as const, name: 'newtag' } const items = [newItem] const command = cy.stub().as('command')