mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
Add jest set/has pointer capture mocks (#1581)
* Add set/has pointer capter mocks * Add mock impl.
This commit is contained in:
@@ -9,6 +9,9 @@ module.exports = async function () {
|
||||
const { nop } = require('../utils/nopProxy')
|
||||
global.enableWebGLCanvas = nop
|
||||
|
||||
global.window.HTMLElement.prototype.hasPointerCapture = jest.fn(() => true)
|
||||
global.window.HTMLElement.prototype.setPointerCapture = jest.fn()
|
||||
|
||||
HTMLCanvasElement.prototype.getContext = nop
|
||||
|
||||
localStorage['Comfy.Settings.Comfy.Logging.Enabled'] = 'false'
|
||||
|
||||
Reference in New Issue
Block a user