diff --git a/.all-contributorsrc b/.all-contributorsrc
index 1c181443..97eaa492 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -370,6 +370,15 @@
"code",
"doc"
]
+ },
+ {
+ "login": "jpavon",
+ "name": "Julio PavΓ³n",
+ "avatar_url": "https://avatars2.githubusercontent.com/u/1493505?v=4",
+ "profile": "http://jpavon.com",
+ "contributions": [
+ "code"
+ ]
}
]
}
diff --git a/README.md b/README.md
index b5f0641f..4ce37165 100644
--- a/README.md
+++ b/README.md
@@ -15,7 +15,7 @@
[![version][version-badge]][package] [![downloads][downloads-badge]][npmtrends]
[![MIT License][license-badge]][license]
-[](#contributors)
+[](#contributors)
[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc]
[![Join the community on Spectrum][spectrum-badge]][spectrum]
@@ -959,7 +959,7 @@ Thanks goes to these people ([emoji key][emojis]):
| [
Michal Baranowski](https://twitter.com/baranovskim)
[π](#blog-mbaranovski "Blogposts") [β
](#tutorial-mbaranovski "Tutorials") | [
Arthur Puthin](https://github.com/aputhin)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=aputhin "Documentation") | [
Thomas Chia](https://github.com/thchia)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=thchia "Code") [π](https://github.com/kentcdodds/react-testing-library/commits?author=thchia "Documentation") | [
Thiago Galvani](http://ilegra.com/)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=thiagopaiva99 "Documentation") | [
Christian](http://Chriswcs.github.io)
[β οΈ](https://github.com/kentcdodds/react-testing-library/commits?author=ChrisWcs "Tests") | [
Alex Krolick](https://alexkrolick.com)
[π¬](#question-alexkrolick "Answering Questions") [π](https://github.com/kentcdodds/react-testing-library/commits?author=alexkrolick "Documentation") [π‘](#example-alexkrolick "Examples") [π€](#ideas-alexkrolick "Ideas, Planning, & Feedback") | [
Johann Hubert Sonntagbauer](https://github.com/johann-sonntagbauer)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=johann-sonntagbauer "Code") [π](https://github.com/kentcdodds/react-testing-library/commits?author=johann-sonntagbauer "Documentation") [β οΈ](https://github.com/kentcdodds/react-testing-library/commits?author=johann-sonntagbauer "Tests") |
| [
Maddi Joyce](http://www.maddijoyce.com)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=maddijoyce "Code") | [
Ryan Vice](http://www.vicesoftware.com)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=RyanAtViceSoftware "Documentation") | [
Ian Wilson](https://ianwilson.io)
[π](#blog-iwilsonq "Blogposts") [β
](#tutorial-iwilsonq "Tutorials") | [
Daniel](https://github.com/InExtremaRes)
[π](https://github.com/kentcdodds/react-testing-library/issues?q=author%3AInExtremaRes "Bug reports") [π»](https://github.com/kentcdodds/react-testing-library/commits?author=InExtremaRes "Code") | [
Giorgio Polvara](https://twitter.com/Gpx)
[π](https://github.com/kentcdodds/react-testing-library/issues?q=author%3AGpx "Bug reports") [π€](#ideas-Gpx "Ideas, Planning, & Feedback") | [
John Gozde](https://github.com/jgoz)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=jgoz "Code") | [
Sam Horton](https://twitter.com/SavePointSam)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=SavePointSam "Documentation") [π‘](#example-SavePointSam "Examples") [π€](#ideas-SavePointSam "Ideas, Planning, & Feedback") |
| [
Richard Kotze (mobile)](http://www.richardkotze.com)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=rkotze "Documentation") | [
Brahian E. Soto Mercedes](https://github.com/sotobuild)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=sotobuild "Documentation") | [
Benoit de La Forest](https://github.com/bdelaforest)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=bdelaforest "Documentation") | [
Salah](https://github.com/thesalah)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=thesalah "Code") [β οΈ](https://github.com/kentcdodds/react-testing-library/commits?author=thesalah "Tests") | [
Adam Gordon](http://gordonizer.com)
[π](https://github.com/kentcdodds/react-testing-library/issues?q=author%3Aicfantv "Bug reports") [π»](https://github.com/kentcdodds/react-testing-library/commits?author=icfantv "Code") | [
Matija MarohniΔ](https://silvenon.com)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=silvenon "Documentation") | [
Justice Mba](https://github.com/Dajust)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=Dajust "Documentation") |
-| [
Mark Pollmann](https://markpollmann.com/)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=MarkPollmann "Documentation") | [
Ehtesham Kafeel](https://github.com/ehteshamkafeel)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=ehteshamkafeel "Code") [π](https://github.com/kentcdodds/react-testing-library/commits?author=ehteshamkafeel "Documentation") |
+| [
Mark Pollmann](https://markpollmann.com/)
[π](https://github.com/kentcdodds/react-testing-library/commits?author=MarkPollmann "Documentation") | [
Ehtesham Kafeel](https://github.com/ehteshamkafeel)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=ehteshamkafeel "Code") [π](https://github.com/kentcdodds/react-testing-library/commits?author=ehteshamkafeel "Documentation") | [
Julio PavΓ³n](http://jpavon.com)
[π»](https://github.com/kentcdodds/react-testing-library/commits?author=jpavon "Code") |
diff --git a/typings/index.d.ts b/typings/index.d.ts
index 403137fd..604b8838 100644
--- a/typings/index.d.ts
+++ b/typings/index.d.ts
@@ -19,28 +19,65 @@ type TextMatchOptions = {
}
interface GetsAndQueries {
- queryByTestId: BoundFunction
- queryAllByTestId: BoundFunction
- getByTestId: BoundFunction
- getAllByTestId: BoundFunction
- queryByText: BoundFunction
- queryAllByText: BoundFunction
- getByText: BoundFunction
- getAllByText: BoundFunction
queryByPlaceholderText: BoundFunction
queryAllByPlaceholderText: BoundFunction
getByPlaceholderText: BoundFunction
getAllByPlaceholderText: BoundFunction
- queryByLabelText: BoundFunction
- queryAllByLabelText: BoundFunction
- getByLabelText: BoundFunction
- getAllByLabelText: BoundFunction
+ queryByText: BoundFunction
+ queryAllByText: BoundFunction
+ getByText: BoundFunction
+ getAllByText: BoundFunction
+ queryByLabelText: BoundFunction
+ queryAllByLabelText: BoundFunction
+ getByLabelText: BoundFunction
+ getAllByLabelText: BoundFunction
queryByAltText: BoundFunction
queryAllByAltText: BoundFunction
getByAltText: BoundFunction
getAllByAltText: BoundFunction
+ queryByTestId: BoundFunction
+ queryAllByTestId: BoundFunction
+ getByTestId: BoundFunction
+ getAllByTestId: BoundFunction
+ queryByTitle: BoundFunction
+ queryAllByTitle: BoundFunction
+ getByTitle: BoundFunction
+ getAllByTitle: BoundFunction
+ queryByValue: BoundFunction
+ queryAllByValue: BoundFunction
+ getByValue: BoundFunction
+ getAllByValue: BoundFunction
}
+export const queryByPlaceholderText: QueryByAttribute
+export const queryAllByPlaceholderText: AllByAttribute
+export const getByPlaceholderText: GetByAttribute
+export const getAllByPlaceholderText: AllByAttribute
+export const queryByText: QueryByText
+export const queryAllByText: AllByText
+export const getByText: GetByText
+export const getAllByText: AllByText
+export const queryByLabelText: QueryByText
+export const queryAllByLabelText: AllByText
+export const getByLabelText: GetByText
+export const getAllByLabelText: AllByText
+export const queryByAltText: QueryByAttribute
+export const queryAllByAltText: AllByAttribute
+export const getByAltText: GetByAttribute
+export const getAllByAltText: AllByAttribute
+export const queryByTestId: QueryByAttribute
+export const queryAllByTestId: AllByAttribute
+export const getByTestId: GetByAttribute
+export const getAllByTestId: AllByAttribute
+export const queryByTitle: QueryByAttribute
+export const queryAllByTitle: AllByAttribute
+export const getByTitle: GetByAttribute
+export const getAllByTitle: AllByAttribute
+export const queryByValue: QueryByAttribute
+export const queryAllByValue: AllByAttribute
+export const getByValue: GetByAttribute
+export const getAllByValue: AllByAttribute
+
export interface RenderResult extends GetsAndQueries {
container: HTMLDivElement
debug: () => void