17 lines
456 B
TypeScript
17 lines
456 B
TypeScript
// @ts-nocheck
|
|
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { loadConfig } from "../src/config.ts";
|
|
|
|
test("defaults to dry-run mode", () => {
|
|
const config = loadConfig({ configPath: "missing.json" });
|
|
|
|
assert.equal(config.dryRun, true);
|
|
});
|
|
|
|
test("cli dry-run override wins over local config", () => {
|
|
const config = loadConfig({ configPath: "missing.json", dryRun: true });
|
|
|
|
assert.equal(config.dryRun, true);
|
|
});
|