(configYaml: string | null)
| 19 | }); |
| 20 | |
| 21 | async function projectWith(configYaml: string | null): Promise<string> { |
| 22 | const dir = await fs.mkdtemp(path.join(os.tmpdir(), 'qodex-cfg-')); |
| 23 | dirs.push(dir); |
| 24 | await fs.mkdir(path.join(dir, '.qodex'), { recursive: true }); |
| 25 | if (configYaml !== null) { |
| 26 | await fs.writeFile(path.join(dir, '.qodex', 'config.yaml'), configYaml); |
| 27 | } |
| 28 | return dir; |
| 29 | } |
| 30 | |
| 31 | function expectWellFormed(cfg: unknown) { |
| 32 | expect(cfg).not.toBeNull(); |
no test coverage detected