test.govlab/quality/core/adapters/tool.jscpd.adapter.test.ts

test.govlab/quality/core/adapters/tool.jscpd.adapter.test.ts is a file in Codebase Testing. 8 lines of code and 0 definitions.

import { expect, test } from "vitest";
import { ROOT } from "@ssot/paths";
import { govlabJscpdConfig } from "@govlab/quality/core/adapters/tool.jscpd.adapter.ts";

test("govlabJscpdConfig reports through the json reporter and carries the thresholds", async () => {
    const config = await govlabJscpdConfig(ROOT);
    expect(config["reporters"]).toStrictEqual(["json"]);
    expect(typeof config["minTokens"]).toBe("number");
});