From 51e5ce3c3d86229d2ca9836ba4f52c5b2191b487 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Tue, 20 Jul 2021 16:50:37 +0200 Subject: [PATCH] Adapt test to new TypeScript 4.3 error message --- packages/cli/src/tsrepl.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/cli/src/tsrepl.spec.ts b/packages/cli/src/tsrepl.spec.ts index e6b488d1..4757d035 100644 --- a/packages/cli/src/tsrepl.spec.ts +++ b/packages/cli/src/tsrepl.spec.ts @@ -40,7 +40,7 @@ describe("TsRepl", () => { await new TsRepl(tsConfigPath, "const const const;") .start() .then(() => fail("must not resolve")) - .catch((e) => expect(e).toMatch(/Variable declaration expected./)); + .catch((e) => expect(e).toMatch(/'const' is not allowed as a variable declaration name./)); }); it("can be started with top level await", async () => {