import { transformer } from "../src/transforms/{{ name }}";
import { setupTestFixtures } from "./test-utils";

describe("{{ name }}", () => {
  
  const { useFixture } = setupTestFixtures({ test: "{{ name }}" });

  test("basic", () => {
    // load the fixture for the test
    const { root, read, readJson } = useFixture({
      fixture: "specific-fixture",
    });

    // run the transformer
    const result = transformer({
      root,
      options: { force: false, dry: false, print: false },
    });

    // result should be correct
    expect(result.fatalError).toBeUndefined();
    expect(result.changes).toMatchInlineSnapshot();
  });
});

