Skip to content

Releases: callstack/react-native-testing-library

v9.0.0

06 Dec 08:54
Compare
Choose a tag to compare

What's Changed

Migration guide: https://callstack.github.io/react-native-testing-library/docs/migration-v9

Full Changelog: v8.0.0...v9.0.0

v9.0.0-alpha.0

23 Nov 15:39
Compare
Choose a tag to compare
v9.0.0-alpha.0 Pre-release
Pre-release

Features

  • breaking: add text match options a.k.a string precision API by @AugustinLF in #554
    Please refer to #554 to see what's breaking

Full Changelog: v8.0.0...v9.0.0-alpha.0

v8.0.0

15 Oct 19:23
Compare
Choose a tag to compare

Features

  • [breaking] do not throw when event handler was not found (#691)
  • expose custom Jest preset restoring global Promise (#695)

Fixes

  • [breaking] use real timers internally to fix awaiting with fake timers (#568)
  • wrap unmount in act (#706)
  • forward extra data to press event (#828)

v8.0.0-rc.0

02 Mar 14:11
Compare
Choose a tag to compare
v8.0.0-rc.0 Pre-release
Pre-release

Features

  • [breaking] do not throw when event handler was not found (#691)
  • expose custom Jest preset restoring global Promise (#695)

Fixes

  • [breaking] use real timers internally to fix awaiting with fake timers (#568)

v7.2.0

02 Mar 12:00
Compare
Choose a tag to compare

Features

  • support pointerEvents when firing events (#655)

Fixes

  • display stack trace and code frame for findBy error (#581)
  • add onMoveShouldSetResponder to element enabled checking (#577)
  • correct TS typings for debug.shallow (#584)
  • add container to TypeScript types (#582)
  • getByDisplayValue not checking TextInput's defaultValue (#656)

Chore & Maintenance

  • restructure ByTestId queries code by predicate type (#608, #654)
  • bump React Native to 0.64 RC (#626)
  • update React imports (#629)
  • adding tests for React Navigation Drawer Navigator (#624)
  • update "How Should I Query?" links to use the correct URLs (#580)

Docs

  • Fixed broken link of mock setup file (#673)
  • fix typo in README.md (#657)
  • update doc for fireEvent.onScroll (#633)

v7.1.0

21 Oct 10:37
Compare
Choose a tag to compare

Features

  • export container from render (#567)
  • add the value expected in getBy error messages (#550)
  • support 'editable' prop on TextInput (#517)
  • RegExp support for ByTestId queries (#535)

Fixes

  • non-responder wrapping host elements ignore disabled prop (#572)

Docs

  • fix typos/grammar (#575, #551)
  • port 'How Should I Query?' guide from Native Testing Library (#555)
  • adjust ByTestId misleading warnings; add guidelines about accessibilityHint (#542)
  • update scroll event api for flat list (#519)
  • clarify waitFor documentation in regards to timer mocks (#538, #540)
  • add note to v7 migration guide about baseElement removed from render (#533)

Chore & Maintenance

  • update CircleCI to run examples (#557)
  • test website on CI (#511)
  • bump Docusaurus to alpha.61 (#509, #510)

v7.0.2

16 Aug 19:30
Compare
Choose a tag to compare

Fixes

  • return closest Text matching a query (#489)
  • correct TS typings for queryAllByTestId (#498)

Docs

  • add a new link to External Resources (#491)
  • adjust wording around debug (#502)

v7.0.1

31 Jul 08:36
Compare
Choose a tag to compare

Fixes

  • fire event should not throw for disabled handlers (#470)

v7.0.0

30 Jul 14:19
Compare
Choose a tag to compare

We renamed the react-native-testing-library npm package to @testing-library/react-native, officially joining the "Testing Library" family 馃帀.

Features

  • [breaking]: prevent firing events on disabled elements (#460)
  • [breaking]: rename ByPlaceholder to ByPlaceholderText (#455)
  • add getQueriesForElement alias to within (#461)

Chore

  • [breaking]: rename to @testing-library/react-native (#463, #462)

Docs

  • small amendments to the migration guide (47f570b)
  • refresh readme and getting started guide (dc8d759)
  • add migration to v7 guide (#456, #464, #465)

v2.2.0

30 Jul 11:02
Compare
Choose a tag to compare

Features

  • introduce ByLabelText, ByRole and ByHintText a11y aliases (#445)

Docs

  • add links to external resources in the README (#446)