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