Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
beforeAll(() => {
clearDOM();
renderTestComponent(
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
refs.unrelatedContainer = document.createElement("div");
refs.unrelatedContainer.className = styles.container;
wrapper.appendChild(refs.unrelatedContainer);
refs.unrelatedMarker = document.createElement("div");
refs.unrelatedMarker.className = styles.marker;
wrapper.appendChild(refs.unrelatedMarker);
refs.unrelatedChild = document.createElement("div");
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
refs.unrelatedContainer = document.createElement("div");
refs.unrelatedContainer.className = styles.container;
wrapper.appendChild(refs.unrelatedContainer);
refs.unrelatedMarker = document.createElement("div");
refs.unrelatedMarker.className = styles.marker;
wrapper.appendChild(refs.unrelatedMarker);
clearDOM();
renderTestComponent(
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
refs.unrelatedContainer = document.createElement("div");
refs.unrelatedContainer.className = styles.container;
export const getByTestId = id => rawGetByTestId(root, id);
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
refs.unrelatedContainer = document.createElement("div");
refs.unrelatedContainer.className = styles.container;
wrapper.appendChild(refs.unrelatedContainer);
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
refs.unrelatedContainer = document.createElement("div");
refs.unrelatedContainer.className = styles.container;
wrapper.appendChild(refs.unrelatedContainer);
refs.unrelatedMarker = document.createElement("div");
renderTestComponent(
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
refs.unrelatedContainer = document.createElement("div");
,
{
width: 100,
height: 100
}
);
refs.root1 = getByTestId(document.body, "root-1");
refs.marker1 = getByTestId(refs.root1, "marker-1");
refs.label1 = getByTestId(refs.root1, "label-1");
refs.child1 = getByTestId(refs.root1, "child-1");
refs.root2 = getByTestId(document.body, "root-2");
refs.marker2 = getByTestId(refs.root2, "marker-2");
refs.label2 = getByTestId(refs.root2, "label-2");
refs.child2 = getByTestId(refs.root2, "child-2");
refs.root3 = getByTestId(document.body, "root-3");
refs.marker3 = getByTestId(refs.root3, "marker-3");
refs.label3 = getByTestId(refs.root3, "label-3");
const wrapper = document.createElement("div");
wrapper.style.width = "100px";
wrapper.style.height = "100px";
wrapper.style.position = "absolute";
wrapper.style.left = "0";
wrapper.style.bottom = "0";
refs.unrelatedContainer = document.createElement("div");
refs.unrelatedContainer.className = styles.container;
wrapper.appendChild(refs.unrelatedContainer);
refs.unrelatedMarker = document.createElement("div");
refs.unrelatedMarker.className = styles.marker;