rescript-dom-testing-library
Version:
ReScript bindings for @testing-library/dom
41 lines (32 loc) • 1.23 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 makeByTestIdOptions(exact, normalizer, param) {
return {
exact: Js_undefined.fromOption(exact),
normalizer: Js_undefined.fromOption(normalizer)
};
}
function getByTestId(options, matcher, element) {
return Dom.getByTestId(element, matcher.VAL, options);
}
function findByTestId(options, matcher, element) {
return Dom.findByTestId(element, matcher.VAL, options);
}
function getAllByTestId(options, matcher, element) {
return Dom.getAllByTestId(element, matcher.VAL, options);
}
function queryAllByTestId(options, matcher, element) {
return Dom.queryAllByTestId(element, matcher.VAL, options);
}
function findAllByTestId(options, matcher, element) {
return Dom.findAllByTestId(element, matcher.VAL, options);
}
exports.makeByTestIdOptions = makeByTestIdOptions;
exports.getByTestId = getByTestId;
exports.findByTestId = findByTestId;
exports.getAllByTestId = getAllByTestId;
exports.queryAllByTestId = queryAllByTestId;
exports.findAllByTestId = findAllByTestId;
/* @testing-library/dom Not a pure module */