MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / errorsOf

Function errorsOf

__tests__/vue-tsx-script.test.ts:94–98  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

92 * was not loaded is never parsed, and nothing at all is stored for it.
93 */
94function 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
100describe('Vue <script lang="tsx">', () => {
101 it('indexes a macro-only script without a parse warning', async () => {

Callers 1

Calls 1

getFileMethod · 0.80

Tested by

no test coverage detected