Closed
Description
- @testing-library/[email protected]
I have created custom query using this document.
https://testing-library.com/docs/dom-testing-library/api-helpers#custom-queries
But not found function getElementError in the queryHelpers.
I found the deletion of the declaration in #452.
Is the code below correct to do this?
// Hmmm.. `getConfig` is not exported at the entry point.
const config = require('@testing-library/dom/dist/config')
export function getMyCustomElement(container) {
... snip ...
if (!element) {
throw config.getConfig().getElementError(`Unable to find an element....`, container)
}
... snip ...
}
Metadata
Metadata
Assignees
Labels
No labels