Skip to content

Commit

Permalink
feat: align part of StatsError
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Jul 9, 2024
1 parent a5f7e00 commit b846045
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ module.exports = {
Object {
"errors": Array [
Object {
"details": "Error: test push\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-push.js:10:19)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:467:41\\n at <cwd>packages/rspack/dist/Compiler.js:534:23",
"details": "Error: test push\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-push.js:10:19)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:466:41\\n at <cwd>packages/rspack/dist/Compiler.js:533:23",
"message": " Γ— test push\\n",
"stack": "Error: test push\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-push.js:10:19)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:467:41\\n at <cwd>packages/rspack/dist/Compiler.js:534:23",
"stack": "Error: test push\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-push.js:10:19)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:466:41\\n at <cwd>packages/rspack/dist/Compiler.js:533:23",
},
Object {
"message": " Γ— Resolve error: Can't resolve './answer' in '<cwd>packages/rspack-test-tools/tests/fixtures/errors/resolve-fail-esm'\\n ╭────\\n 1 β”‚ import { answer } from './answer'\\n Β· ──────────\\n ╰────\\n help: Did you mean './answer.js'?\\n \\n The request './answer' failed to resolve only because it was resolved as fully specified,\\n probably because the origin is strict EcmaScript Module,\\n e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '\\"type\\": \\"module\\"'.\\n \\n The extension in the request is mandatory for it to be fully specified.\\n Add the extension to the request.\\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = {
"errors": Array [
Object {
"message": " Γ— Error: test unshift\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n",
"stack": "Error: test unshift\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-shift.js:13:35)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:467:41\\n at <cwd>packages/rspack/dist/Compiler.js:534:23",
"stack": "Error: test unshift\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-shift.js:13:35)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:466:41\\n at <cwd>packages/rspack/dist/Compiler.js:533:23",
},
],
"warnings": Array [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
"errors": Array [
Object {
"message": " Γ— Error: test splice\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n",
"stack": "Error: test splice\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js:10:39)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:467:41\\n at <cwd>packages/rspack/dist/Compiler.js:534:23",
"stack": "Error: test splice\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-splice-1.js:10:39)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:466:41\\n at <cwd>packages/rspack/dist/Compiler.js:533:23",
},
],
"warnings": Array [],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = {
"errors": Array [
Object {
"message": " Γ— Error: test splice\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n β”‚ at xxx\\n",
"stack": "Error: test splice\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js:10:39)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:467:41\\n at <cwd>packages/rspack/dist/Compiler.js:534:23",
"stack": "Error: test splice\\n at Object.fn (<cwd>packages/rspack-test-tools/tests/errorCases/error-test-splice-2.js:10:39)\\n at next (<cwd>packages/rspack-lite-tapable/dist/index.js:530:25)\\n at AsyncSeriesHook.callAsyncStageRange (<cwd>packages/rspack-lite-tapable/dist/index.js:550:9)\\n at AsyncSeriesHook.callAsync (<cwd>packages/rspack-lite-tapable/dist/index.js:88:21)\\n at <cwd>packages/rspack/dist/Compiler.js:466:41\\n at <cwd>packages/rspack/dist/Compiler.js:533:23",
},
Object {
"message": " Γ— Resolve error: Can't resolve './answer' in '<cwd>packages/rspack-test-tools/tests/fixtures/errors/resolve-fail-esm'\\n ╭────\\n 1 β”‚ import { answer } from './answer'\\n Β· ──────────\\n ╰────\\n help: Did you mean './answer.js'?\\n \\n The request './answer' failed to resolve only because it was resolved as fully specified,\\n probably because the origin is strict EcmaScript Module,\\n e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '\\"type\\": \\"module\\"'.\\n \\n The extension in the request is mandatory for it to be fully specified.\\n Add the extension to the request.\\n",
Expand Down

0 comments on commit b846045

Please sign in to comment.