After some searching, I found
within – also called
getQueriesForElement – in the Testing Library docs which seemed to fit this case perfectly. Passing
within gives me all the queries that I'm used to from
jest-dom/extend-expect I can then write an assertion that is similar to how I would normally write it.
// Our example
// How I would normally test it