Skip to content

@bcarroll22 bcarroll22 released this May 16, 2019 · 26 commits to master since this release

3.0.0 (2019-05-16)

Bug Fixes

  • getBy:* throw an error if more than one element is found (#7) (ebd4410)
  • add regression test for custom queries (8750ccf)
  • add wait-for-element-to-be-removed to index.d.ts (06c106e)
  • change mock to doMock (5707853)
  • change node filter params (55ce35c)
  • change the way event bubbling works (bc6913b)
  • change the way mocks work (9eac5ba)
  • jest preset was not working (623345f)

Documentation

Features

  • queries: throw when multiple elements are returned from getBy (61895c9)
  • add asFragment to the API (4980ac2)
  • add SafeAreaView to mocks (bce8162)
  • build custom toJSON (a6192db)
  • change the mocked core components (#10) (d377026)
  • decouple lib from preset (d2bd926)
  • include jest serializer (c5364a8)
  • mostly the same api as DTL (6faa701)
  • only traverse valid parents and children (bcde7d7)
  • prepare rc.1 (11b7b1d)

BREAKING CHANGES

  • Release 3.0.0 adds exciting new features like a bundled jest preset, and aligns
    more closely to the testing-library guiding principles.
  • getBy:* queryBy and getBy now throw when multiple elements are returned and prompt users to use other queries if multiple results were intentional. This was done to remain in feature parity with dom-testing-library.
  • queries: queryBy and getBy now throw when multiple elements are returned and prompt
    users to use other queries if multiple results were intentional. This was done to remain in feature
    parity with dom-testing-library.
Assets 2
You can’t perform that action at this time.