Skip to content

Commit

Permalink
In the latest JCO changes, something changed about the type of TS err…
Browse files Browse the repository at this point in the history
…or objects. You now need to check `error.payload` for the error message instead of just checking `error`.
  • Loading branch information
mjoerussell committed Jan 21, 2025
1 parent 3c744ba commit 7d326c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/testlang/outputs/npm/tests/src/cst/query.test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test("query syntax error", () => {
Query.parse(source);
throw new Error("Query.parse() should have thrown");
} catch (error) {
expect(error).toEqual({
expect((error as any).payload).toEqual({
message: `Parse error:
expected ']' at:
Alt at: [TreeNode @b [DelimitedIdentifier]
Expand Down

0 comments on commit 7d326c5

Please sign in to comment.