Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: testing-library/react-testing-library
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cbe020ada151a92aa1be46a695354a33045aafac
Choose a base ref
...
head repository: testing-library/react-testing-library
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 58150b9efdd5515ad88e2d3373d926ee89093278
Choose a head ref
  • 4 commits
  • 5 files changed
  • 4 contributors

Commits on Feb 3, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    0d56ea8 View commit details

Commits on Feb 19, 2021

  1. test: fix typo (#878)

    AriPerkkio authored Feb 19, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    95c2fa5 View commit details

Commits on Feb 20, 2021

  1. docs: add AriPerkkio as a contributor (#879)

    * docs: update README.md
    
    * docs: update .all-contributorsrc
    
    Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
    allcontributors[bot] authored Feb 20, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a241cb8 View commit details

Commits on Mar 30, 2021

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    58150b9 View commit details
Showing with 13 additions and 3 deletions.
  1. +9 −0 .all-contributorsrc
  2. +1 −0 README.md
  3. +1 −1 package.json
  4. +1 −1 src/__tests__/events.js
  5. +1 −1 types/test.tsx
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1242,6 +1242,15 @@
"bug",
"code"
]
},
{
"login": "AriPerkkio",
"name": "Ari Perkkiö",
"avatar_url": "https://avatars.githubusercontent.com/u/14806298?v=4",
"profile": "https://codepen.io/ariperkkio/",
"contributions": [
"test"
]
}
],
"contributorsPerLine": 7,
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -606,6 +606,7 @@ Thanks goes to these people ([emoji key][emojis]):
<td align="center"><a href="https://github.com/marcosvega91"><img src="https://avatars2.githubusercontent.com/u/5365582?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marco Moretti</b></sub></a><br /><a href="https://github.com/testing-library/react-testing-library/commits?author=marcosvega91" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/sanchit121"><img src="https://avatars2.githubusercontent.com/u/30828115?v=4?s=100" width="100px;" alt=""/><br /><sub><b>sanchit121</b></sub></a><br /><a href="https://github.com/testing-library/react-testing-library/issues?q=author%3Asanchit121" title="Bug reports">🐛</a> <a href="https://github.com/testing-library/react-testing-library/commits?author=sanchit121" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/solufa"><img src="https://avatars.githubusercontent.com/u/9402912?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Solufa</b></sub></a><br /><a href="https://github.com/testing-library/react-testing-library/issues?q=author%3Asolufa" title="Bug reports">🐛</a> <a href="https://github.com/testing-library/react-testing-library/commits?author=solufa" title="Code">💻</a></td>
<td align="center"><a href="https://codepen.io/ariperkkio/"><img src="https://avatars.githubusercontent.com/u/14806298?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ari Perkkiö</b></sub></a><br /><a href="https://github.com/testing-library/react-testing-library/commits?author=AriPerkkio" title="Tests">⚠️</a></td>
</tr>
</table>
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -26,7 +26,7 @@
"dont-cleanup-after-each.js",
"pure.js",
"pure.d.ts",
"types"
"types/*.d.ts"
],
"keywords": [
"testing",
2 changes: 1 addition & 1 deletion src/__tests__/events.js
Original file line number Diff line number Diff line change
@@ -228,7 +228,7 @@ test('calling `fireEvent` directly works too', () => {
)
})

test('blur/foucs bubbles in react', () => {
test('blur/focus bubbles in react', () => {
const handleBlur = jest.fn()
const handleBubbledBlur = jest.fn()
const handleFocus = jest.fn()
2 changes: 1 addition & 1 deletion types/test.tsx
Original file line number Diff line number Diff line change
@@ -88,7 +88,7 @@ export function testQueries() {
const {getByLabelText} = render(
<label htmlFor="usernameInput">Username</label>,
)
expectType<HTMLElement, ReturnType<typeof getByText>>(
expectType<HTMLElement, ReturnType<typeof getByLabelText>>(
getByLabelText('Username'),
)