Skip to content

Commit 26c7634

Browse files
committed
Update JSON parse error matcher
Looks like this text changed?
1 parent d431c9c commit 26c7634

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit/node/settings.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe("settings", () => {
2929
const settings = new SettingsProvider<CoderSettings>(pathToMockSettingsFile)
3030
await settings.read()
3131
// This happens when we can't parse a JSON (usually error in file)
32-
expect(logger.warn).toHaveBeenCalledWith("Unexpected token t in JSON at position 29")
32+
expect(logger.warn).toHaveBeenCalledWith(expect.stringMatching(/Unexpected token/))
3333
})
3434
})
3535
describe("with invalid settings file path", () => {

0 commit comments

Comments
 (0)