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
What you did:
I have tests where I use the type parameter of objectContaining, which previously worked fine when the object contained toIncludeSameMembers on properties.
What happened (please provide anything you think will help):
Now, as the output type of toIncludeSameMembers was changed from any to Result (see #477), the following TypeScript error is shown: TS2740: Type 'Result' is missing the following properties from type 'string[]': length, pop, push, concat, and 29 more.
Reproduction repository (if possible):
Copy the test case shown above and attempt to compile with TypeScript.
The text was updated successfully, but these errors were encountered:
Bug
package
version: 3.0.2node
version: v16.13.0npm
(oryarn
) version: npm 8.5.0Relevant code or config
What you did:
I have tests where I use the type parameter of
objectContaining
, which previously worked fine when the object containedtoIncludeSameMembers
on properties.What happened (please provide anything you think will help):
Now, as the output type of
toIncludeSameMembers
was changed fromany
toResult
(see #477), the following TypeScript error is shown:TS2740: Type 'Result' is missing the following properties from type 'string[]': length, pop, push, concat, and 29 more.
Reproduction repository (if possible):
Copy the test case shown above and attempt to compile with TypeScript.
The text was updated successfully, but these errors were encountered: