()
| 20 | } |
| 21 | |
| 22 | export async function loadFileList(): Promise<FileEntry[]> { |
| 23 | const fileList = (await fs.readFile(new URL('file-list.txt', fixturesDataUrl), 'utf8')) |
| 24 | .split('\n') |
| 25 | .map((a) => a.trim()) |
| 26 | .filter((a) => a) |
| 27 | .map((file) => Path.resolve(cwd, file)) |
| 28 | .map((file) => file.split(';')) |
| 29 | .map(([filename, matcherId, match]) => ({ |
| 30 | filename, |
| 31 | matcherId: Number.parseInt(matcherId, 10), |
| 32 | match: match === 'true', |
| 33 | })); |
| 34 | |
| 35 | return fileList; |
| 36 | } |
| 37 | |
| 38 | export async function loadPatterns(): Promise<TestPattern[]> { |
| 39 | const raw = await fs.readFile(new URL('patterns.jsonc', fixturesDataUrl), 'utf8'); |
no test coverage detected
searching dependent graphs…