(name: string, content: string, message: string)
| 33 | } |
| 34 | |
| 35 | async function commit(name: string, content: string, message: string): Promise<string> { |
| 36 | await memfs.promises.writeFile(`${DIR}/${name}`, content); |
| 37 | await git.add({ fs: memfs, dir: DIR, filepath: name }); |
| 38 | return git.commit({ fs: memfs, dir: DIR, message, author: AUTHOR }); |
| 39 | } |
| 40 | |
| 41 | async function statusOf(path: string): Promise<[number, number, number] | undefined> { |
| 42 | const matrix = await git.statusMatrix({ fs: memfs, dir: DIR }); |
no test coverage detected