jest-extended
jest-extended copied to clipboard
Does .toBeEmpty() works correct after 0.10 release?
Please, look at pic below:
Previously that test passed, now object with property length:0 is considered empty. Is that correct behavior?
Connected with: https://github.com/jest-community/jest-extended/pull/160
@deser would you be able to share the failing test?
expect({length: 0}).toBeEmpty()
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