mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 06:19:58 +00:00
* Replace test framework: jest -> vitest * nit - remove deprecated npm scripts * Add vitest config * Add a few basic tests * Update actions with vitest params * Add correct expectations * Remove jest config
11 lines
314 B
TypeScript
11 lines
314 B
TypeScript
import { describe, expect } from "vitest"
|
|
import { LGraphGroup } from "@/litegraph"
|
|
import { lgTest } from "./lgTest"
|
|
|
|
describe("LGraphGroup", () => {
|
|
lgTest("serializes to the existing format", () => {
|
|
const link = new LGraphGroup("title", 929)
|
|
expect(link.serialize()).toMatchSnapshot("Basic")
|
|
})
|
|
})
|