diff options
Diffstat (limited to 'cli/tests/testdata')
5 files changed, 14 insertions, 5 deletions
diff --git a/cli/tests/testdata/fmt/fmt_check_parse_error.out b/cli/tests/testdata/fmt/fmt_check_parse_error.out index d9b918af7..9854b6c97 100644 --- a/cli/tests/testdata/fmt/fmt_check_parse_error.out +++ b/cli/tests/testdata/fmt/fmt_check_parse_error.out @@ -1,6 +1,6 @@ -Error checking: [WILDCARD] - Line 2, column 7: Expected '{', got '<eof>' +Error checking: [WILDCARD]parse_error.ts + Expected '{', got '<eof>' at [WILDCARD]parse_error.ts:2:7 - class Test - ~~~~ + class Test + ~~~~ error: Found 1 not formatted file in 1 file diff --git a/cli/tests/testdata/lint/expected_json.out b/cli/tests/testdata/lint/expected_json.out index 61680607c..08ea0d3e0 100644 --- a/cli/tests/testdata/lint/expected_json.out +++ b/cli/tests/testdata/lint/expected_json.out @@ -58,7 +58,7 @@ "errors": [ { "file_path": "[WILDCARD]malformed.js", - "message": "Expected '{', got 'B' at [WILDCARD]malformed.js:4:16" + "message": "Expected '{', got 'B' at [WILDCARD]malformed.js:4:16\n\n export class A B C\n ~" } ] } diff --git a/cli/tests/testdata/run/error_syntax.js.out b/cli/tests/testdata/run/error_syntax.js.out index 6d3f05b8e..fa4d51686 100644 --- a/cli/tests/testdata/run/error_syntax.js.out +++ b/cli/tests/testdata/run/error_syntax.js.out @@ -1 +1,4 @@ error: The module's source code could not be parsed: Expected ',', got 'following' at [WILDCARD]/error_syntax.js:3:6 + + (the following is a syntax error ^^ ! ) + ~~~~~~~~~ diff --git a/cli/tests/testdata/run/error_syntax_empty_trailing_line.mjs.out b/cli/tests/testdata/run/error_syntax_empty_trailing_line.mjs.out index f4bbc6708..2eb290bb5 100644 --- a/cli/tests/testdata/run/error_syntax_empty_trailing_line.mjs.out +++ b/cli/tests/testdata/run/error_syntax_empty_trailing_line.mjs.out @@ -1 +1,4 @@ error: The module's source code could not be parsed: Unexpected eof at [WILDCARD]/error_syntax_empty_trailing_line.mjs:2:22 + + setTimeout(() => {}), + ~ diff --git a/cli/tests/testdata/run/swc_syntax_error.ts.out b/cli/tests/testdata/run/swc_syntax_error.ts.out index c968db5e9..81b0c1949 100644 --- a/cli/tests/testdata/run/swc_syntax_error.ts.out +++ b/cli/tests/testdata/run/swc_syntax_error.ts.out @@ -1 +1,4 @@ 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 + + } + ~ |