Skip to content

Commit

Permalink
chore: update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
xinxinhe1810 authored and h-a-n-a committed Sep 8, 2023
1 parent 66e0817 commit 3e378cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions packages/rspack/tests/Stats.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 │
Expand Down
24 changes: 12 additions & 12 deletions packages/rspack/tests/__snapshots__/StatsTestCases.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1779,19 +1779,19 @@ exports[`StatsTestCases should print correct stats for parse-error-builtin-swc-l
"errors": [
{
"formatted": "error[internal]:
[31mx[0m Expected '{', got 'error'
,-[[36;1;4m<PROJECT_ROOT>/tests/statsCases/parse-error-builtin-swc-loader/index.ts[0m:1:1]
[2m1[0m | export error;
: [31;1m ^^^^^[0m
x Expected '{', got 'error'
,-[<PROJECT_ROOT>/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1]
1 | export error;
: ^^^^^
\`----
",
"message": "
[31mx[0m Expected '{', got 'error'
,-[[36;1;4m<PROJECT_ROOT>/tests/statsCases/parse-error-builtin-swc-loader/index.ts[0m:1:1]
[2m1[0m | export error;
: [31;1m ^^^^^[0m
x Expected '{', got 'error'
,-[<PROJECT_ROOT>/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1]
1 | export error;
: ^^^^^
\`----
",
"title": "",
Expand All @@ -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]:
[31mx[0m Expected '{', got 'error'
,-[[36;1;4m<PROJECT_ROOT>/tests/statsCases/parse-error-builtin-swc-loader/index.ts[0m:1:1]
[2m1[0m | export error;
: [31;1m ^^^^^[0m
x Expected '{', got 'error'
,-[<PROJECT_ROOT>/tests/statsCases/parse-error-builtin-swc-loader/index.ts:1:1]
1 | export error;
: ^^^^^
\`----
Expand Down

0 comments on commit 3e378cc

Please sign in to comment.