import fs from "node:fs"; import os from "node:os"; import path from "node:path"; import { describe, expect, it } from "vitest"; import { parseBatchSource } from "./config-set-input.js";
describe("config set input parsing", () => {
it("returns null when no batch options are provided", () => {
expect(parseBatchSource({})).toBeNull();
});
it("rejects using both --batch-json and --batch-file", () => {
expect(() =>
parseBatchSource({
batchJson: "[]",
batchFile: "/tmp/batch.json",
}),
).toThrow("Use either --batch-json or --batch-file, not both.");
});
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.