Closed
Description
There's a block of code used by vue-testing-library, react-testing-library and in the tests here:
const containerHelpers = Object.entries(queries).reduce(
(helpers, [key, fn]) => {
helpers[key] = fn.bind(null, element)
return helpers
},
{},
)
I propose adding a bindQueriesToElement
utility function to encapsulate this code.
Metadata
Metadata
Assignees
Labels
No labels