initial commit of test file

This commit is contained in:
Vladimir Khvan 2023-02-10 16:26:00 +05:00
parent c86238b344
commit ee1dfa04a8

View File

@ -0,0 +1,13 @@
import { unmountComponentAtNode } from "react-dom";
let container = null;
beforeEach(() => {
container = document.createElement("div");
document.body.appendChild(container);
});
afterEach(() => {
unmountComponentAtNode(container);
container.remove();
container = null;
});