(...extra: string[])
| 137 | |
| 138 | /** A real sparse checkout; `away/` and everything under it leaves the disk. */ |
| 139 | const sparse = (...extra: string[]) => { |
| 140 | git('sparse-checkout', 'set', ...extra, 'kept'); |
| 141 | expect(fs.existsSync(path.join(root, 'away'))).toBe(false); |
| 142 | expect(git('ls-files', '-t')).toContain('S away/one/two/Gone.java'); // the premise: git lists them |
| 143 | }; |
| 144 | const onDisk = ['kept/Here.java', 'kept/deep/There.java']; |
| 145 | |
| 146 | it('the scan lists what the checkout holds, not what it leaves out', () => { |
no test coverage detected