-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.js
18 lines (18 loc) · 724 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module.exports = {
// If we want people to be able to use it without react-testing-library,
// then we can expose a "render" function which basically does the same
// as react-testing-library
// module.exports = component => {
// const node = document.createElement("div");
// node.id = "test-app";
// document.body.appendChild(node);
// ReactDOM.render(component, node);
// }
// But we should also add the cleanup that react-testing-library does
//
// render: require("./src/render"),
generateImage: require("./generateImage"),
setDefaultOptions: require("./options").setDefaultOptions,
restoreDefaultOptions: require("./options").restoreDefaultOptions,
debug: require("./debug")
};