Skip to content

Releases: callstack/react-native-testing-library

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)

v2.1.1

16 Jul 13:07
Compare
Choose a tag to compare

Fixes

v2.1.0

10 Jun 06:25
Compare
Choose a tag to compare

Features

  • add waitForElementToBeRemoved helper (#376)

v2.0.1

03 Jun 14:06
Compare
Choose a tag to compare

Chore & Maintenance

  • use "files" entry instead of npmignore to reduce publish size (#371)

Docs

  • clarify configuration to include preset react-native (#362)
  • update React Navigation tests to use find queries (#364)

v2.0.0

28 May 13:10
Compare
Choose a tag to compare

Welcome to the RNTL v2 🥳

Make sure to check the Migration guide in our docs.

Features

  • [breaking]: call cleanup automatically (#238)
  • [breaking]: unify waitFor signature with Testing Library (#327)
  • wrap waitFor in (async) act to support async queries without explicit act call (#344)

Fixes

  • [breaking]: getByTestId should work only for native elements (#324)

Chore

  • [breaking]: remove deprecated and non-prefixed unsafe functions (#334)
  • [breaking]: remove legacy debug export (#328)
  • [breaking]: deprecate flushMicrotasksQueue (#340)
  • [breaking]: compile project to Node 10 using @babel/preset-env (#309)

Docs