Skip to content

Commit 7da8f57

Browse files
bartlomiejuclaude
andcommitted
fix: update spec tests for improved parse error display
Updates expected output files to match the new structured parse error format from deno_graph, which uses location on its own line with pipe margins, line numbers, and carets. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 40b56f7 commit 7da8f57

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
error: The module's source code could not be parsed: Expected ',', got 'following' at [WILDCARD]/error_syntax.js:3:6
2-
3-
(the following is a syntax error ^^ ! )
4-
~~~~~~~~~
1+
error: Expected ',', got 'following'
2+
at [WILDCARD]/error_syntax.js:3:6
3+
|
4+
3 | (the following is a syntax error ^^ ! )
5+
| ~~~~~~~~~
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
error: The module's source code could not be parsed: Expression expected at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22
2-
3-
setTimeout(() => {}),
4-
~
1+
error: Expression expected
2+
at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22
3+
|
4+
2 | setTimeout(() => {}),
5+
| ~
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
error: The module's source code could not be parsed: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, ( at [WILDCARD]syntax_error.ts:4:1
2-
3-
}
4-
~
1+
error: Unexpected token `}`. Expected an identifier, void, yield, null, await, break, a string literal, a numeric literal, true, false, `, -, import, this, typeof, {, [, (
2+
at [WILDCARD]syntax_error.ts:4:1
3+
|
4+
4 | }
5+
| ~

0 commit comments

Comments
 (0)