From a680ca7d13115ee5aa3df02865f06a45619f2df1 Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Wed, 17 Dec 2025 09:18:23 +0000 Subject: [PATCH] Unneeded ts-expects --- internal-packages/tsql/src/grammar/parser.test.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal-packages/tsql/src/grammar/parser.test.ts b/internal-packages/tsql/src/grammar/parser.test.ts index 31b59eea5..77f371e31 100644 --- a/internal-packages/tsql/src/grammar/parser.test.ts +++ b/internal-packages/tsql/src/grammar/parser.test.ts @@ -6,7 +6,6 @@ describe("TSQLParser", () => { function parse(input: string) { const inputStream = CharStreams.fromString(input); const lexer = new TSQLLexer(inputStream); - // @ts-expect-error - antlr4ts type definitions issue: Lexer implements TokenSource but types don't reflect it const tokenStream = new CommonTokenStream(lexer); const parser = new TSQLParser(tokenStream); return parser; @@ -81,9 +80,7 @@ describe("TSQLParser", () => { const columnExpr = tree.columnExpr(); expect(columnExpr).toBeDefined(); // Check that the expression has children (the operands and operator) - // @ts-expect-error - text property exists at runtime but not in types expect(columnExpr.text).toBeDefined(); - // @ts-expect-error - text property exists at runtime but not in types const text = columnExpr.text; expect(text).toContain("1"); expect(text).toContain("2"); @@ -98,7 +95,6 @@ describe("TSQLParser", () => { const columnExpr = tree.columnExpr(); expect(columnExpr).toBeDefined(); // The expression should contain the operators - // @ts-expect-error - text property exists at runtime but not in types const text = columnExpr.text; expect(text).toContain("+"); expect(text).toContain("*"); @@ -114,7 +110,6 @@ describe("TSQLParser", () => { expect(tree).toBeDefined(); const columnExpr = tree.columnExpr(); expect(columnExpr).toBeDefined(); - // @ts-expect-error - text property exists at runtime but not in types const text = columnExpr.text; expect(text).toContain("hello"); expect(text).toContain("world"); @@ -127,7 +122,6 @@ describe("TSQLParser", () => { expect(tree).toBeDefined(); const columnExpr = tree.columnExpr(); expect(columnExpr).toBeDefined(); - // @ts-expect-error - text property exists at runtime but not in types expect(columnExpr.text).toContain("42"); }); });