github testing-library/dom-testing-library v4.0.0

latest releases: v10.0.0, v10.0.0-alpha.3, v9.3.4...
5 years ago

4.0.0 (2019-04-25)

Bug Fixes

BREAKING CHANGES

We try to keep breaking changes to a minimum. This release only has two breaking changes. One is removal of deprecated methods you probably weren't using anyway, and the other reveals potential bugs in your tests. So you should be able to upgrade to this version with little-to-no effort.

  • getBy:* All getBy and findBy query variants now will throw an error if more than one element is returned. If this is expected, then use getAllBy (or findAllBy) instead.
  • This removes the deprecated queries ByValue and BySelectText. Use ByDisplayValue instead.

Don't miss a new dom-testing-library release

NewReleases is sending notifications on new releases.