ioatol / ComfyUI /tests-ui /globalSetup.js
Freak-ppa's picture
Upload 343 files
ac6acf2 verified
raw
history blame
350 Bytes
module.exports = async function () {
global.ResizeObserver = class ResizeObserver {
observe() {}
unobserve() {}
disconnect() {}
};
const { nop } = require("./utils/nopProxy");
global.enableWebGLCanvas = nop;
HTMLCanvasElement.prototype.getContext = nop;
localStorage["Comfy.Settings.Comfy.Logging.Enabled"] = "false";
};