Skip to content

Commit 7186b74

Browse files
committed
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.
1 parent 0901d1b commit 7186b74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/router/__tests__/RouterLink.spec.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @jest-environment jsdom
33
*/
4-
import { RouterLink, RouterLinkProps } from '../src/RouterLink'
4+
import { RouterLink } from '../src/RouterLink'
55
import {
66
START_LOCATION_NORMALIZED,
77
RouteQueryAndHash,
@@ -919,9 +919,8 @@ describe('RouterLink', () => {
919919
components: { RouterLink },
920920
name: 'AppLink',
921921

922-
// @ts-expect-error
923922
props: {
924-
...((RouterLink as any).props as RouterLinkProps),
923+
...(RouterLink as any).props,
925924
inactiveClass: String as PropType<string>,
926925
},
927926

0 commit comments

Comments
 (0)