@constructor-io/constructorio-connect-cli
Version:
CLI tool to enable users to interface with the Constructor Connect Ecosystem
19 lines (15 loc) • 591 B
JavaScript
/**
* 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("variation", () => {
it("should match snapshot", async () => {
const result = await executeTemplate({
type: "variation",
name: "variation.jsonata",
fixture: buildFixture("variation", "variation.json"),
});
expect(result).toMatchSnapshot();
});
});