mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
* Add jsondiffpatch * Add logs * Add graphDiff helper * Fix changeTracker * Add loglevel * Add playwright test * Fix jest test * nit * nit * Fix test url * nit
29 lines
646 B
TypeScript
29 lines
646 B
TypeScript
module.exports = async function () {
|
|
jest.mock('@/services/dialogService', () => {
|
|
return {
|
|
showLoadWorkflowWarning: jest.fn(),
|
|
showMissingModelsWarning: jest.fn(),
|
|
showSettingsDialog: jest.fn(),
|
|
showExecutionErrorDialog: jest.fn(),
|
|
showTemplateWorkflowsDialog: jest.fn(),
|
|
showPromptDialog: jest
|
|
.fn()
|
|
.mockImplementation((message, defaultValue) => {
|
|
return Promise.resolve(defaultValue)
|
|
})
|
|
}
|
|
})
|
|
|
|
jest.mock('vue-i18n', () => {
|
|
return {
|
|
useI18n: jest.fn()
|
|
}
|
|
})
|
|
|
|
jest.mock('jsondiffpatch', () => {
|
|
return {
|
|
diff: jest.fn()
|
|
}
|
|
})
|
|
}
|