jest-extended icon indicating copy to clipboard operation
jest-extended copied to clipboard

Does .toBeEmpty() works correct after 0.10 release?

Open deser opened this issue 6 years ago • 4 comments

Please, look at pic below:

image

Previously that test passed, now object with property length:0 is considered empty. Is that correct behavior?

deser avatar Jan 21 '19 15:01 deser

Connected with: https://github.com/jest-community/jest-extended/pull/160

deser avatar Jan 21 '19 15:01 deser

@deser would you be able to share the failing test?

mattphillips avatar Jan 23 '19 16:01 mattphillips

expect({length: 0}).toBeEmpty()

deser avatar Jan 31 '19 13:01 deser

Not entirely sure if this is related, but I just ran into an issue where the toBeEmpty() exposed by jest-extended conflicted with jest-dom, which also exposes a toBeEmpty() method.

https://github.com/gnapse/jest-dom/issues/86

jorgegonzalez avatar Mar 13 '19 13:03 jorgegonzalez