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

Function cli

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

Source from the content-addressed store, hash-verified

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

Callers 1

cli.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected