Files
ComfyUI_frontend/test/LGraph_constructor.test.ts
filtered 2c3535c983 [Test] Add integration test: LGraph snapshot (#591)
- Runs basic Litegraph init before performing the snapshot
- Allows a significantly more useful verification of the public API
2025-02-25 08:58:29 +00:00

14 lines
505 B
TypeScript

import { describe } from "vitest"
import { LGraph } from "@/litegraph"
import { dirtyTest } from "./testExtensions"
describe("LGraph (constructor only)", () => {
dirtyTest("Matches previous snapshot", ({ expect, minimalSerialisableGraph, basicSerialisableGraph }) => {
const minLGraph = new LGraph(minimalSerialisableGraph)
expect(minLGraph).toMatchSnapshot("minLGraph")
const basicLGraph = new LGraph(basicSerialisableGraph)
expect(basicLGraph).toMatchSnapshot("basicLGraph")
})
})