mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
29 lines
710 B
TypeScript
29 lines
710 B
TypeScript
import { start } from '../utils'
|
|
import lg from '../utils/litegraph'
|
|
|
|
// Load things once per test file before to ensure its all warmed up for the tests
|
|
beforeAll(async () => {
|
|
const originalWarn = console.warn
|
|
console.error = function (...args) {
|
|
if (['Error: Not implemented: window.alert'].includes(args[0])) {
|
|
return
|
|
}
|
|
}
|
|
console.warn = function (...args) {
|
|
if (
|
|
[
|
|
"sMethod=='pointer' && !window.PointerEvent",
|
|
'Warning, nodes missing on pasting'
|
|
].includes(args[0])
|
|
) {
|
|
return
|
|
}
|
|
originalWarn.apply(console, args)
|
|
}
|
|
console.log = function (...args) {}
|
|
|
|
lg.setup(global)
|
|
await start({ resetEnv: true })
|
|
lg.teardown(global)
|
|
})
|