We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 955f77f commit 135959cCopy full SHA for 135959c
test/parsing/ParsingTestHelper.ts
@@ -7,6 +7,9 @@ export async function parseValidInput (parse: ReturnType<typeof parseHelper<Cont
7
const document = await parse(input)
8
9
expectNoParsingErrors(document)
10
+ expect(document.parseResult.lexerErrors).toHaveLength(0)
11
+ expect(document.diagnostics || []).toHaveLength(0)
12
+
13
return document
14
}
15
@@ -17,5 +20,5 @@ export async function parseInvalidInput (parse: ReturnType<typeof parseHelper<Co
17
20
18
21
19
22
export function expectNoParsingErrors (document: LangiumDocument<ContextMappingModel>) {
- expect(document.parseResult.parserErrors.length).toEqual(0)
23
+ expect(document.parseResult.parserErrors).toHaveLength(0)
24
0 commit comments