mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
[Refactor] Extract nodeDefSchema from apiSchema (#2756)
This commit is contained in:
@@ -2,7 +2,10 @@
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
|
||||
import { ComfyNodeDef, validateComfyNodeDef } from '@/schemas/apiSchema'
|
||||
import {
|
||||
type ComfyNodeDef,
|
||||
validateComfyNodeDef
|
||||
} from '@/schemas/nodeDefSchema'
|
||||
|
||||
const EXAMPLE_NODE_DEF: ComfyNodeDef = {
|
||||
input: {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createPinia, setActivePinia } from 'pinia'
|
||||
|
||||
import { useComboWidget } from '@/composables/widgets/useComboWidget'
|
||||
import type { InputSpec } from '@/schemas/apiSchema'
|
||||
import type { InputSpec } from '@/schemas/nodeDefSchema'
|
||||
|
||||
jest.mock('@/scripts/widgets', () => ({
|
||||
addValueControlWidgets: jest.fn()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import axios from 'axios'
|
||||
|
||||
import { useRemoteWidget } from '@/composables/widgets/useRemoteWidget'
|
||||
import type { ComboInputSpecV2 } from '@/schemas/apiSchema'
|
||||
import type { ComboInputSpecV2 } from '@/schemas/nodeDefSchema'
|
||||
|
||||
jest.mock('axios', () => ({
|
||||
get: jest.fn()
|
||||
|
||||
Reference in New Issue
Block a user