rescript-dom-testing-library
Version:
ReScript bindings for @testing-library/dom
43 lines (34 loc) • 1.31 kB
JavaScript
// Generated by ReScript, PLEASE EDIT WITH CARE
;
var Js_undefined = require("rescript/lib/js/js_undefined.js");
var Dom = require("@testing-library/dom");
function makeByTextOptions(selector, exact, ignore, normalizer, param) {
return {
selector: Js_undefined.fromOption(selector),
exact: Js_undefined.fromOption(exact),
ignore: Js_undefined.fromOption(ignore),
normalizer: Js_undefined.fromOption(normalizer)
};
}
function getByText(options, element, matcher) {
return Dom.getByText(element, matcher.VAL, options);
}
function findByText(options, matcher, element) {
return Dom.findByText(element, matcher.VAL, options);
}
function getAllByText(options, matcher, element) {
return Dom.getAllByText(element, matcher.VAL, options);
}
function queryAllByText(options, matcher, element) {
return Dom.queryAllByText(element, matcher.VAL, options);
}
function findAllByText(options, matcher, element) {
return Dom.findAllByText(element, matcher.VAL, options);
}
exports.makeByTextOptions = makeByTextOptions;
exports.getByText = getByText;
exports.findByText = findByText;
exports.getAllByText = getAllByText;
exports.queryAllByText = queryAllByText;
exports.findAllByText = findAllByText;
/* @testing-library/dom Not a pure module */