Releases: callstack/react-native-testing-library
Releases · callstack/react-native-testing-library
v7.0.0
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
toByPlaceholderText
(#455) - add
getQueriesForElement
alias towithin
(#461)
Chore
Docs
v2.2.0
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)