From 6fd3ecb4e0b2a6a5106014eb6ee3358b673c2538 Mon Sep 17 00:00:00 2001 From: hexin17 Date: Fri, 8 Sep 2023 15:18:33 +0800 Subject: [PATCH] chore: update snap --- packages/rspack/tests/Stats.test.ts | 4 ++-- .../__snapshots__/StatsTestCases.test.ts.snap | 24 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/rspack/tests/Stats.test.ts b/packages/rspack/tests/Stats.test.ts index 69c1397144d7..f8ec877b5a71 100644 --- a/packages/rspack/tests/Stats.test.ts +++ b/packages/rspack/tests/Stats.test.ts @@ -205,11 +205,11 @@ describe("Stats", () => { │ 2 │ return "This is b"; 3 │ }; - 4 │ + 4 │ 5 │ // Test CJS top-level return 6 │ return; │ ^^^^^^^ Return statement is not allowed here - 7 │ + 7 │ diff --git a/packages/rspack/tests/__snapshots__/StatsTestCases.test.ts.snap b/packages/rspack/tests/__snapshots__/StatsTestCases.test.ts.snap index 6b8f716a36e1..a5e6410bd714 100644 --- a/packages/rspack/tests/__snapshots__/StatsTestCases.test.ts.snap +++ b/packages/rspack/tests/__snapshots__/StatsTestCases.test.ts.snap @@ -1771,19 +1771,19 @@ exports[`StatsTestCases should print correct stats for parse-error-builtin-swc-l "errors": [ { "formatted": "error[internal]: - x Expected '{', got 'error' - ,-[/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1] - 1 | export error; - :  ^^^^^ + x Expected '{', got 'error' + ,-[/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1] + 1 | export error; + : ^^^^^ \`---- ", "message": " - x Expected '{', got 'error' - ,-[/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1] - 1 | export error; - :  ^^^^^ + x Expected '{', got 'error' + ,-[/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1] + 1 | export error; + : ^^^^^ \`---- ", "title": "", @@ -1798,10 +1798,10 @@ exports[`StatsTestCases should print correct stats for parse-error-builtin-swc-l exports[`StatsTestCases should print correct stats for parse-error-builtin-swc-loader 2`] = ` "error[internal]: - x Expected '{', got 'error' - ,-[/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1] - 1 | export error; - :  ^^^^^ + x Expected '{', got 'error' + ,-[/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1] + 1 | export error; + : ^^^^^ \`----