Skip to content

Releases: callstack/react-native-testing-library

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)

v1.13.0

18 Mar 16:31
Compare
Choose a tag to compare

Deprecations

In preparations to v2 release, we decided to mark some APIs as deprecated or unsafe.

  • deprecate shallow (#264)
  • alias ByProps and ByType queries with UNSAFE_ (#261) – we consider removing these APIs in the future, but it's not decided yet

Features

  • add ByA11yValue queries (#262)
  • add ByA11yState queries (#260)

Fixes

  • more robust null/undefined check for text children in getByText (#239)

Docs

  • add new a11y queries and prepare for 2.x (#263)
  • add DocSearch as recommended by Docusaurus. (#254)
  • clarify how queryBy behaves (#251)

v1.12.0

16 Dec 10:03
Compare
Choose a tag to compare

1.12.0 (2019-12-16)

Features