(obj: unknown)
| 32 | fs.rmSync(dir, { recursive: true, force: true }); |
| 33 | }); |
| 34 | const writeConfig = (obj: unknown) => |
| 35 | fs.writeFileSync( |
| 36 | path.join(dir, 'codegraph.json'), |
| 37 | typeof obj === 'string' ? obj : JSON.stringify(obj) |
| 38 | ); |
| 39 | |
| 40 | it('returns an empty list when there is no codegraph.json (the default)', () => { |
| 41 | expect(loadExcludePatterns(dir)).toEqual([]); |
no test coverage detected