MCPcopy Create free account
hub / github.com/conventional-changelog/commitlint / cli

Function cli

@commitlint/prompt-cli/cli.test.js:10–24  ·  view source on GitHub ↗
(args, options)

Source from the content-addressed store, hash-verified

8const bin = require.resolve("./cli.js");
9
10const cli = (args, options) => {
11 return (input = "") => {
12 const result = x(bin, args, {
13 nodeOptions: {
14 cwd: options.cwd,
15 env: options.env,
16 },
17 });
18
19 result.process.stdin.write(input);
20 result.process.stdin.end();
21
22 return result;
23 };
24};
25
26test("should print warning if stage is empty", async () => {
27 const cwd = await git.bootstrap();

Callers 1

cli.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected