(opts: { ref?: string; to?: string; paths?: string[] } = {})
| 264 | beforeEach(() => vol.reset()); |
| 265 | |
| 266 | function summary(opts: { ref?: string; to?: string; paths?: string[] } = {}) { |
| 267 | return diffSummaryWith({ |
| 268 | git: isomorphicGit, |
| 269 | fs: memfs, |
| 270 | createPatch, |
| 271 | readFile: (path) => memfs.promises.readFile(path) as Promise<Uint8Array | string>, |
| 272 | dir: DIR, |
| 273 | ...opts, |
| 274 | }); |
| 275 | } |
| 276 | |
| 277 | it("returns an empty list for a clean working tree", async () => { |
| 278 | await init(); |
no test coverage detected