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] -[![All Contributors](https://img.shields.io/badge/all_contributors-37-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-38-orange.svg?style=flat-square)](#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