"use strict";
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
            t[p[i]] = s[p[i]];
    return t;
};
function __export(m) {
    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importStar(require("react"));
const react_testing_library_1 = require("react-testing-library");
const styles_1 = require("../styles");
const customRender = (node, ...opts) => {
    const _a = react_testing_library_1.render(react_1.default.createElement(styles_1.ThemeProvider, null, node), ...opts), { rerender } = _a, result = __rest(_a, ["rerender"]);
    const customRerender = (rerenderNode) => {
        return rerender(react_1.default.createElement(react_1.Fragment, null, rerenderNode));
    };
    return Object.assign({ rerender: customRerender }, result);
};
exports.render = customRender;
__export(require("react-testing-library"));
//# sourceMappingURL=helpers.js.map