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

asymmetricMatch for toHaveValue

Open benmonro opened this issue 5 years ago • 0 comments

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.

benmonro avatar Nov 18 '19 15:11 benmonro