Skip to content

Commit 13543a9

Browse files
author
Kent C. Dodds
authored
feat: update wait-for-expect which always uses real timers (#361)
1 parent fa66224 commit 13543a9

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@
4040
"dist"
4141
],
4242
"dependencies": {
43-
"@babel/runtime": "^7.5.5",
43+
"@babel/runtime": "^7.6.2",
4444
"@sheerun/mutationobserver-shim": "^0.3.2",
4545
"@types/testing-library__dom": "^6.0.0",
4646
"aria-query": "3.0.0",
47-
"pretty-format": "^24.8.0",
48-
"wait-for-expect": "^1.3.0"
47+
"pretty-format": "^24.9.0",
48+
"wait-for-expect": "^3.0.0"
4949
},
5050
"devDependencies": {
51-
"@testing-library/jest-dom": "^4.0.0",
51+
"@testing-library/jest-dom": "^4.1.0",
5252
"jest-in-case": "^1.0.2",
5353
"jest-serializer-ansi": "^1.0.3",
54-
"jest-watch-select-projects": "^0.1.1",
54+
"jest-watch-select-projects": "^1.0.0",
5555
"jsdom": "^15.1.1",
56-
"kcd-scripts": "^1.5.2"
56+
"kcd-scripts": "^1.7.0"
5757
},
5858
"eslintConfig": {
5959
"extends": "./node_modules/kcd-scripts/eslint.js",

src/role-helpers.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ function shouldExcludeFromA11yTree(element) {
5757
}
5858

5959
function getImplicitAriaRoles(currentNode) {
60+
// eslint bug here:
61+
// eslint-disable-next-line no-unused-vars
6062
for (const {selector, roles} of elementRoleList) {
6163
if (currentNode.matches(selector)) {
6264
return [...roles]
@@ -88,6 +90,8 @@ function buildElementRoleList(elementRolesMap) {
8890

8991
let result = []
9092

93+
// eslint bug here:
94+
// eslint-disable-next-line no-unused-vars
9195
for (const [element, roles] of elementRolesMap.entries()) {
9296
result = [
9397
...result,

0 commit comments

Comments
 (0)