Skip to content

Commit

Permalink
Update JSON parse error matcher
Browse files Browse the repository at this point in the history
Looks like this text changed?
  • Loading branch information
code-asher committed Jun 21, 2024
1 parent d431c9c commit 26c7634
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/node/settings.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("settings", () => {
const settings = new SettingsProvider<CoderSettings>(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", () => {
Expand Down

0 comments on commit 26c7634

Please sign in to comment.