-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t.like()
feedback
#2518
Comments
I like it |
There is an issue with the selector type: Line 133 in f72fab4
type Foo = {
foo?: 'foo',
bar?: 'bar'
}
const foo: Foo = {}
const { foo: _, ...expected } = foo
t.like(bar, expected) This throws a type error because Not sure yet which type we should use. @sindresorhus? |
I think you have to use |
Ah thanks. Fixed with #2532 and a handy regression test. |
Have you tried our new
t.like()
assertion? What did you think of it? Did it behave the way you expected it to?Let us know so we can make it not require opt-in.
(Also, we need some help making our ESLint plugin recognize it.)
The text was updated successfully, but these errors were encountered: