From 7186b7470d3b500eec6d4e067928cb605f76343a Mon Sep 17 00:00:00 2001 From: Evan You Date: Tue, 4 Jun 2024 17:22:11 +0800 Subject: [PATCH] chore: adjust test case type checking context: the type usage is incorrect and was previously ignored by ts-expect-error, but with 3.5 the error happens at the call level so it is safer to just any it. --- packages/router/__tests__/RouterLink.spec.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/router/__tests__/RouterLink.spec.ts b/packages/router/__tests__/RouterLink.spec.ts index e3d76b685..1b9b8c0f6 100644 --- a/packages/router/__tests__/RouterLink.spec.ts +++ b/packages/router/__tests__/RouterLink.spec.ts @@ -1,7 +1,7 @@ /** * @jest-environment jsdom */ -import { RouterLink, RouterLinkProps } from '../src/RouterLink' +import { RouterLink } from '../src/RouterLink' import { START_LOCATION_NORMALIZED, RouteQueryAndHash, @@ -919,9 +919,8 @@ describe('RouterLink', () => { components: { RouterLink }, name: 'AppLink', - // @ts-expect-error props: { - ...((RouterLink as any).props as RouterLinkProps), + ...(RouterLink as any).props, inactiveClass: String as PropType, },