(test, parser)
| 81 | } |
| 82 | |
| 83 | parse(test, parser) { |
| 84 | const tests = typeof test.contents === "string" ? [test] : test.contents; |
| 85 | |
| 86 | for (const { contents, ...options } of tests) { |
| 87 | parser(contents, options); |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | static getTestIdFromAllowlistLine(line) { |
| 92 | return /^- \[(.+?)\]/.exec(line)?.[1]; |
no test coverage detected