From: Evan You Date: Tue, 4 Jun 2024 09:22:11 +0000 (+0800) Subject: chore: adjust test case type checking X-Git-Tag: v4.3.3~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7186b7470d3b500eec6d4e067928cb605f76343a;p=thirdparty%2Fvuejs%2Frouter.git 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. --- diff --git a/packages/router/__tests__/RouterLink.spec.ts b/packages/router/__tests__/RouterLink.spec.ts index e3d76b68..1b9b8c0f 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, },