File tree 4 files changed +33
-4
lines changed
4 files changed +33
-4
lines changed Original file line number Diff line number Diff line change 1497
1497
"contributions" : [
1498
1498
" bug"
1499
1499
]
1500
+ },
1501
+ {
1502
+ "login" : " robcaldecott" ,
1503
+ "name" : " Rob Caldecott" ,
1504
+ "avatar_url" : " https://avatars.githubusercontent.com/u/796702?v=4" ,
1505
+ "profile" : " https://github.com/robcaldecott" ,
1506
+ "contributions" : [
1507
+ " bug"
1508
+ ]
1509
+ },
1510
+ {
1511
+ "login" : " Dennis273" ,
1512
+ "name" : " Dennis273" ,
1513
+ "avatar_url" : " https://avatars.githubusercontent.com/u/19815164?v=4" ,
1514
+ "profile" : " https://github.com/Dennis273" ,
1515
+ "contributions" : [
1516
+ " code"
1517
+ ]
1500
1518
}
1501
1519
],
1502
1520
"repoHost" : " https://github.com"
Original file line number Diff line number Diff line change @@ -327,6 +327,10 @@ Thanks goes to these people ([emoji key][emojis]):
327
327
<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/dom-testing-library/commits?author=IanVS" title="Code">💻</a></td>
328
328
<td align="center"><a href="http://supervanya.com"><img src="https://avatars.githubusercontent.com/u/12336038?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Vanya Prokopovich</b></sub></a><br /><a href="https://github.com/testing-library/dom-testing-library/issues?q=author%3Asupervanya" title="Bug reports">🐛</a></td>
329
329
<td align="center"><a href="https://github.com/jrnail23"><img src="https://avatars.githubusercontent.com/u/392612?v=4?s=100" width="100px;" alt=""/><br /><sub><b>James Nail</b></sub></a><br /><a href="https://github.com/testing-library/dom-testing-library/issues?q=author%3Ajrnail23" title="Bug reports">🐛</a></td>
330
+ <td align="center"><a href="https://github.com/robcaldecott"><img src="https://avatars.githubusercontent.com/u/796702?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rob Caldecott</b></sub></a><br /><a href="https://github.com/testing-library/dom-testing-library/issues?q=author%3Arobcaldecott" title="Bug reports">🐛</a></td>
331
+ </tr >
332
+ <tr >
333
+ <td align="center"><a href="https://github.com/Dennis273"><img src="https://avatars.githubusercontent.com/u/19815164?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dennis273</b></sub></a><br /><a href="https://github.com/testing-library/dom-testing-library/commits?author=Dennis273" title="Code">💻</a></td>
330
334
</tr >
331
335
</table >
332
336
Original file line number Diff line number Diff line change @@ -254,6 +254,12 @@ export async function testWithin() {
254
254
255
255
await container . findByRole ( 'button' , { name : / c l i c k m e / i} )
256
256
container . getByRole < HTMLButtonElement > ( 'button' , { name : / c l i c k m e / i} )
257
+
258
+ let withinQueries = within ( document . body )
259
+ withinQueries = within ( document . body )
260
+ withinQueries . getByRole < HTMLButtonElement > ( 'button' , { name : / c l i c k m e / i} )
261
+ withinQueries = within ( document . body )
262
+ withinQueries . getByRole < HTMLButtonElement > ( 'button' , { name : / c l i c k m e / i} )
257
263
}
258
264
259
265
/*
Original file line number Diff line number Diff line change @@ -175,7 +175,8 @@ export interface Queries {
175
175
[ T : string ] : Query
176
176
}
177
177
178
- export function getQueriesForElement < T extends Queries = typeof queries > (
179
- element : HTMLElement ,
180
- queriesToBind ?: T ,
181
- ) : BoundFunctions < T >
178
+ export function getQueriesForElement <
179
+ QueriesToBind extends Queries = typeof queries ,
180
+ // Extra type parameter required for reassignment.
181
+ T extends QueriesToBind = QueriesToBind ,
182
+ > ( element : HTMLElement , queriesToBind ?: T ) : BoundFunctions < T >
You can’t perform that action at this time.
0 commit comments