()
| 21 | const isogit = git as unknown as IsomorphicGitStatusClient; |
| 22 | |
| 23 | async function init() { |
| 24 | await memfs.promises.mkdir(DIR, { recursive: true }); |
| 25 | await git.init({ fs: memfs, dir: DIR, defaultBranch: "main" }); |
| 26 | } |
| 27 | |
| 28 | async function commit(name: string, content: string, message: string) { |
| 29 | await memfs.promises.writeFile(`${DIR}/${name}`, content); |
no test coverage detected