Skip to content

Releases: callstack/react-native-testing-library

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

v2.0.0-rc.1

21 May 14:19
Compare
Choose a tag to compare
v2.0.0-rc.1 Pre-release
Pre-release

Features

  • wrap waitFor in (async) act to support async queries without explicit act call (#344)

v2.0.0-rc.0

21 May 08:01
Compare
Choose a tag to compare
v2.0.0-rc.0 Pre-release
Pre-release

Welcome to the very first release candidate to RNTL v2 🥳

Make sure to check the Migration guide.

RCs are published under next tag.

Features

  • [breaking]: call "cleanup" automatically (#238)
  • [breaking]: unify wait for element signature with testing library (#327)

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

v1.14.0

18 May 07:43
Compare
Choose a tag to compare

1.14.0 (2020-05-18)

Features

  • add findBy* async queries (#304)
  • add within operator for returned instance-bound queries (#306)
  • query nested text nodes (#293)
  • support @testing-library/jest-native custom matchers (#310)

Fixes

  • *ByText would call toString() on objects and only match on [object Object] (#290)

Docs

  • added warnings for *ByTestId queries (#305)
  • migrate to Docusaurus v2 (#299)
  • add React Navigation example (#292)
  • add Redux example (#291)
  • remove use of getByTestId in documentation and tests (#294)

v1.13.1

24 Apr 10:29
Compare
Choose a tag to compare

Chore & Maintenance

  • bump RN to 0.62 (#273)
  • include links to the repository and the homepage in package.json (#287)

Docs

  • add example of testing React Navigation (#277)
  • update GettingStarted example with something you can run (#284, #286)
  • fix unclear sentence and misuse of word 'stand' (#278)
  • remove Greenkeeper badge (#267)