const createNode = (depth: number = 0) => {
const node: DataNode = {
children: [],
id: nodeId,
name: `test-${nodeId}`,
}
nodeId += 1
if (depth === **2**) {
return node
}
for (let i = 0; i < **1000**; i++) {
node.children.push(createNode(depth + 1))
}
return node
}