Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
v2.1.1
v2.1.0
v2.0.1
v2.0.0
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 explicitact
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
Features
- wrap
waitFor
in (async) act to support async queries without explicitact
call (#344)
v2.0.0-rc.0
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
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
v1.13.1
Chore & Maintenance
Docs
v1.13.0
Deprecations
In preparations to v2 release, we decided to mark some APIs as deprecated or unsafe.
- deprecate
shallow
(#264) - alias
ByProps
andByType
queries withUNSAFE_
(#261) – we consider removing these APIs in the future, but it's not decided yet
Features
Fixes
- more robust null/undefined check for text children in
getByText
(#239)