Files
beekeeper-studio/apps/studio/tests/init/setup.js
2024-09-26 10:40:49 -05:00

16 lines
306 B
JavaScript

global.document.createRange = () => ({
setStart: () => undefined,
setEnd: () => undefined,
getBoundingClientRect: () => ({
left: 0,
top: 0,
right: 0,
bottom: 0,
}),
getClientRects: () => [],
commonAncestorContainer: {
nodeName: "BODY",
ownerDocument: document,
},
});