test.govlab/quality/core/adapters/tool.shellcheck.adapter.test.ts
test.govlab/quality/core/adapters/tool.shellcheck.adapter.test.ts is a file in Codebase Testing. 10 lines of code and 0 definitions.
import { expect, test } from "vitest";
import { shellcheckFlags } from "@govlab/quality/core/adapters/tool.shellcheck.adapter.ts";
test("shellcheckFlags turns the config section into shellcheck flags", () => {
expect(shellcheckFlags({})).toStrictEqual([]);
expect(shellcheckFlags({ enableAll: true, exclude: ["SC1090", "SC2034"], severity: "style" })).toStrictEqual([
"--enable=all",
"--severity=style",
"--exclude=SC1090,SC2034",
]);
});