test.govlab/quality/core/adapters/dependency.adapter.test.ts

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

import assert from "node:assert/strict";
import { runInstall } from "@govlab/quality/core/adapters/dependency.adapter.ts";
import { test } from "vitest";

const PLAN = {
    ecosystems: ["python"],
    emitters: [],
    eslintPlugins: [],
    npmDeps: ["some-package"],
    systemInstructions: [{ system: "pipx install ruff", tool: "ruff" }],
};

test("runInstall installs nothing on a dry run and still reports the system tools", () => {
    const report = runInstall(PLAN, { dryRun: true, root: "." });
    assert.deepEqual(report.installed, []);
    assert.deepEqual(report.systemInstructions, PLAN.systemInstructions);
});