(obj: unknown)
| 41 | fs.rmSync(dir, { recursive: true, force: true }); |
| 42 | }); |
| 43 | const writeConfig = (obj: unknown) => |
| 44 | fs.writeFileSync( |
| 45 | path.join(dir, 'codegraph.json'), |
| 46 | typeof obj === 'string' ? obj : JSON.stringify(obj) |
| 47 | ); |
| 48 | |
| 49 | it('returns an empty list when there is no codegraph.json (the default)', () => { |
| 50 | expect(loadIncludePatterns(dir)).toEqual([]); |
no test coverage detected