UNPKG

@constructor-io/constructorio-connect-cli

Version:

CLI tool to enable users to interface with the Constructor Connect Ecosystem

19 lines (15 loc) 596 B
/** * Check out the documentation to see how to write and maintain tests: * @see https://docs.constructor.com/docs/integrating-with-constructor-connect-cli-development-flow#step-3-test-your-templates */ import { executeTemplate, buildFixture } from "@constructor-io/constructorio-connect-cli"; describe("item_group", () => { it("should match snapshot", async () => { const result = await executeTemplate({ type: "item_group", name: "item_group.jsonata", fixture: buildFixture("item_group", "item_group.json"), }); expect(result).toMatchSnapshot(); }); });