move tests-ui

This commit is contained in:
huchenlei
2024-06-13 14:09:15 -04:00
parent 36f55018ce
commit 33fe18fa41
17 changed files with 8501 additions and 0 deletions

14
tests-ui/globalSetup.js Normal file
View File

@@ -0,0 +1,14 @@
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";
};