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

Function commitFile

@commitlint/cli/src/cli.test.ts:903–909  ·  view source on GitHub ↗
(cwd: string, file: string, message: string, content = file)

Source from the content-addressed store, hash-verified

901
902describe("path filtering with --path", () => {
903 async function commitFile(cwd: string, file: string, message: string, content = file) {
904 const fullPath = path.join(cwd, file);
905 await fs.mkdir(path.dirname(fullPath), { recursive: true });
906 await fs.writeFile(fullPath, content);
907 await x("git", ["add", "--", file], { nodeOptions: { cwd } });
908 await x("git", ["commit", "-m", message], { nodeOptions: { cwd } });
909 }
910
911 test("should support repeated --path flags", async () => {
912 const cwd = await gitBootstrap("fixtures/default");

Callers 1

cli.test.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected