mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
* Merge 2 npm repos * Install ts-jest * Update jestconfig * Fix jest types * jest fix * Fix babel config ref issue * Fix import * Fix import meta issue * fix generate * Skip multi-user tests
15 lines
336 B
TypeScript
15 lines
336 B
TypeScript
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";
|
|
};
|