()
| 26 | const isomorphicGit = git as unknown as IsomorphicGitDiffClient; |
| 27 | |
| 28 | async function init(): Promise<void> { |
| 29 | await memfs.promises.mkdir(DIR, { recursive: true }); |
| 30 | await git.init({ fs: memfs, dir: DIR, defaultBranch: "main" }); |
| 31 | } |
| 32 | |
| 33 | async function commitFile(path: string, content: string, message: string): Promise<string> { |
| 34 | await memfs.promises.writeFile(`${DIR}/${path}`, content); |
no test coverage detected