* The file's extraction errors. The file must be stored: one whose grammar * was not loaded is never parsed, and nothing at all is stored for it.
(graph: CodeGraph, file: string)
| 92 | * was not loaded is never parsed, and nothing at all is stored for it. |
| 93 | */ |
| 94 | function errorsOf(graph: CodeGraph, file: string) { |
| 95 | const record = graph.getFile(file); |
| 96 | expect(record, `${file} is stored`).not.toBeNull(); |
| 97 | return record!.errors ?? []; |
| 98 | } |
| 99 | |
| 100 | describe('Vue <script lang="tsx">', () => { |
| 101 | it('indexes a macro-only script without a parse warning', async () => { |
no test coverage detected