Skip to content

Commit 9f99f57

Browse files
authored
Merge branch 'main' into improve-tohaveclass-message
2 parents 0f259ba + 6f69437 commit 9f99f57

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

.all-contributorsrc

+9
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,15 @@
659659
"contributions": [
660660
"code"
661661
]
662+
},
663+
{
664+
"login": "IanVS",
665+
"name": "Ian VanSchooten",
666+
"avatar_url": "https://avatars.githubusercontent.com/u/4616705?v=4",
667+
"profile": "https://github.com/IanVS",
668+
"contributions": [
669+
"code"
670+
]
662671
}
663672
],
664673
"repoHost": "https://github.com",

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,7 @@ Thanks goes to these people ([emoji key][emojis]):
13561356
<td align="center"><a href="http://tu4mo.com"><img src="https://avatars.githubusercontent.com/u/16735302?v=4?s=100" width="100px;" alt=""/><br /><sub><b>tu4mo</b></sub></a><br /><a href="https://github.com/testing-library/jest-dom/commits?author=tu4mo" title="Documentation">📖</a></td>
13571357
<td align="center"><a href="https://matan.io"><img src="https://avatars.githubusercontent.com/u/12711091?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Matan Borenkraout</b></sub></a><br /><a href="#platform-MatanBobi" title="Packaging/porting to new platform">📦</a></td>
13581358
<td align="center"><a href="https://github.com/yannbf"><img src="https://avatars.githubusercontent.com/u/1671563?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yann Braga</b></sub></a><br /><a href="https://github.com/testing-library/jest-dom/commits?author=yannbf" title="Code">💻</a></td>
1359+
<td align="center"><a href="https://github.com/IanVS"><img src="https://avatars.githubusercontent.com/u/4616705?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ian VanSchooten</b></sub></a><br /><a href="https://github.com/testing-library/jest-dom/commits?author=IanVS" title="Code">💻</a></td>
13591360
</tr>
13601361
</table>
13611362

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@babel/runtime": "^7.9.2",
3535
"@types/testing-library__jest-dom": "^5.9.1",
36-
"aria-query": "^4.2.2",
36+
"aria-query": "^5.0.0",
3737
"chalk": "^3.0.0",
3838
"css": "^3.0.0",
3939
"css.escape": "^1.5.1",

src/to-be-checked.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function supportedRolesSentence() {
5757
}
5858

5959
function supportedRoles() {
60-
return Array.from(roles.keys()).filter(roleSupportsChecked)
60+
return roles.keys().filter(roleSupportsChecked)
6161
}
6262

6363
function roleSupportsChecked(role) {

src/to-have-description.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import {checkHtmlElement, getMessage, normalize, deprecate} from './utils'
33
// See algoritm: https://www.w3.org/TR/accname-1.1/#mapping_additional_nd_description
44
export function toHaveDescription(htmlElement, checkWith) {
55
deprecate(
6-
'toBeInTheDOM',
7-
'Please use toBeInTheDocument for searching the entire document and toContainElement for searching a specific container.',
6+
'toHaveDescription',
7+
'Please use toHaveAccessibleDescription.',
88
)
99

1010
checkHtmlElement(htmlElement, toHaveDescription, this)

0 commit comments

Comments
 (0)