From 26c763485b9101fcae2ce56fc0903f0e2d48abe3 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 21 Jun 2024 09:51:50 -0800 Subject: [PATCH] Update JSON parse error matcher Looks like this text changed? --- test/unit/node/settings.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/node/settings.test.ts b/test/unit/node/settings.test.ts index 68bf51784..59c6f46a5 100644 --- a/test/unit/node/settings.test.ts +++ b/test/unit/node/settings.test.ts @@ -29,7 +29,7 @@ describe("settings", () => { const settings = new SettingsProvider(pathToMockSettingsFile) await settings.read() // This happens when we can't parse a JSON (usually error in file) - expect(logger.warn).toHaveBeenCalledWith("Unexpected token t in JSON at position 29") + expect(logger.warn).toHaveBeenCalledWith(expect.stringMatching(/Unexpected token/)) }) }) describe("with invalid settings file path", () => {