()
| 12 | const DIR = "/repo"; |
| 13 | |
| 14 | async function init() { |
| 15 | await memfs.promises.mkdir(DIR, { recursive: true }); |
| 16 | await git.init({ fs: memfs, dir: DIR, defaultBranch: "main" }); |
| 17 | } |
| 18 | |
| 19 | async function stage(name: string, content: string) { |
| 20 | await memfs.promises.writeFile(`${DIR}/${name}`, content); |
no test coverage detected