Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 26c7634

Browse files
committedJun 21, 2024··
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

Lines changed: 1 addition & 1 deletion
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)
Please sign in to comment.