jest-dom
jest-dom copied to clipboard
asymmetricMatch for toHaveValue
Describe the feature you'd like:
Much like https://github.com/testing-library/jest-dom/issues/91 it would be nice if toHaveValue also supported asymmetricMatch. for expect.stringContaining or expect.stringMatching etc.
Suggested implementation:
use this.equal instead of lodash for comparison.
Describe alternatives you've considered:
using toHaveAttribute("value", expect.stringContaining('foo')
Teachability, Documentation, Adoption, Migration Strategy:
should be pretty straight forward to update all the things.