You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to setup @testing-library/jest-dom v6 with vitest.
What happened:
Got a TypeScript error:
Argument of type '{ default: TestingLibraryMatchers<any, void> & Record<string, any>; toBeInTheDOM(container?: HTMLElement | SVGElement | undefined): void; ... 25 more ...; toHaveErrorMessage(text?: any): void; }' is not assignable to parameter of type 'MatchersObject<MatcherState>'.
Index signature for type 'string' is missing in type '{ default: TestingLibraryMatchers<any, void> & Record<string, any>; toBeInTheDOM(container?: HTMLElement | SVGElement | undefined): void; ... 25 more ...; toHaveErrorMessage(text?: any): void; }'.
@testing-library/jest-dom
version: 6.1.3node
version: 18.15.0jest
(orvitest
) version: vitest 0.34.4npm
(oryarn
) version: npm 9.5.0Relevant code or config:
What you did:
Tried to setup
@testing-library/jest-dom
v6 with vitest.What happened:
Got a TypeScript error:
Reproduction:
vitest.setup.ts
fileThe text was updated successfully, but these errors were encountered: