MCPcopy Create free account
hub / github.com/KartikLabhshetwar/lazycommit / createLazycommit

Function createLazycommit

tests/utils.ts:12–31  ·  view source on GitHub ↗
(fixture: FsFixture)

Source from the content-addressed store, hash-verified

10const lazycommitPath = path.resolve('./dist/cli.mjs');
11
12const createLazycommit = (fixture: FsFixture) => {
13 const homeEnv = {
14 HOME: fixture.path, // Linux
15 USERPROFILE: fixture.path, // Windows
16 };
17
18 return (args?: string[], options?: Options) =>
19 execaNode(lazycommitPath, args, {
20 cwd: fixture.path,
21 ...options,
22 extendEnv: false,
23 env: {
24 ...homeEnv,
25 ...options?.env,
26 },
27
28 // Block tsx nodeOptions
29 nodeOptions: [],
30 });
31};
32
33export const createGit = async (cwd: string) => {
34 const git = (command: string, args?: string[], options?: Options) =>

Callers 1

createFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected