From 3e378ccd30f6204475df9e68935ed6c074d6fb6d 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 259f4a2bfe8..545e4ccd9e3 100644 --- a/packages/rspack/tests/Stats.test.ts +++ b/packages/rspack/tests/Stats.test.ts @@ -71,11 +71,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 e9315661a0e..ae7623d6a83 100644 --- a/packages/rspack/tests/__snapshots__/StatsTestCases.test.ts.snap +++ b/packages/rspack/tests/__snapshots__/StatsTestCases.test.ts.snap @@ -1779,19 +1779,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": "", @@ -1806,10 +1806,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; + : ^^^^^ \`----