Skip to content

Commit 7ca03f8

Browse files
committed
test: reproduce issue
1 parent 9ae9244 commit 7ca03f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

types/__tests__/type-tests.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ async function testByRole() {
116116

117117
// allow to query for a role that isn't included in the types
118118
console.assert(queryByRole(element, 'foo') === null)
119+
console.assert(queryByRole(element, /foo/) === null)
120+
console.assert(screen.queryByRole('foo') === null)
121+
console.assert(screen.queryByRole(/foo/) === null)
119122
}
120123

121124
function testA11yHelper() {

0 commit comments

Comments
 (0)