MCPcopy
hub / github.com/conventional-changelog/commitlint / cli

Function cli

@commitlint/cli/src/cli.test.ts:22–36  ·  view source on GitHub ↗
(args: string[], options: TestOptions)

Source from the content-addressed store, hash-verified

20}
21
22const cli = (args: string[], options: TestOptions) => {
23 return (input = "") => {
24 const result = x(bin, args, {
25 nodeOptions: {
26 cwd: options.cwd,
27 env: options.env,
28 },
29 });
30
31 result.process?.stdin?.write(input);
32 result.process?.stdin?.end();
33
34 return result;
35 };
36};
37
38const gitBootstrap = (fixture: string) => git.bootstrap(fixture, __dirname);
39const fixBootstrap = (fixture: string) => fix.bootstrap(fixture, __dirname);

Callers 1

cli.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected