| 91 | const groups = md.parse(raw); |
| 92 | |
| 93 | function runSingleTest( |
| 94 | location: string, ty: TestType, meta: Metadata, |
| 95 | input: string, expected: readonly (string | RegExp)[] |
| 96 | ): void { |
| 97 | test(`should pass for type="${ty}" (location=${location})`, { timeout: 60000 }, async () => { |
| 98 | const binary = await buildMode(ty, meta); |
| 99 | await binary.check(input, expected, { |
| 100 | noScan: meta.noScan === true, |
| 101 | }); |
| 102 | }); |
| 103 | } |
| 104 | |
| 105 | function runTest(test: Test) { |
| 106 | describe(test.name + ` at ${name}.md:${test.line + 1}`, () => { |