Skip to content

Commit

Permalink
test: tapable path placeholder in snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
LingyuCoder committed Sep 27, 2024
1 parent c40006c commit 58711f6
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 102 deletions.
60 changes: 30 additions & 30 deletions tests/e2e/__snapshots__/logging.test.js.snap.webpack5
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ exports[`logging should work and log errors by default (sockjs) 1`] = `
[webpack-dev-server] ERROR
× Error: Error from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand All @@ -41,9 +41,9 @@ exports[`logging should work and log errors by default (ws) 1`] = `
[webpack-dev-server] ERROR
× Error: Error from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand Down Expand Up @@ -135,9 +135,9 @@ exports[`logging should work and log only error (sockjs) 1`] = `
[webpack-dev-server] ERROR
× Error: Error from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand All @@ -151,9 +151,9 @@ exports[`logging should work and log only error (ws) 1`] = `
[webpack-dev-server] ERROR
× Error: Error from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand Down Expand Up @@ -191,19 +191,19 @@ exports[`logging should work and log warning and errors (sockjs) 1`] = `
[webpack-dev-server] WARNING
⚠ Error: Warning from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
[webpack-dev-server] Errors while compiling. Reload prevented.,
[webpack-dev-server] ERROR
× Error: Error from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand All @@ -217,19 +217,19 @@ exports[`logging should work and log warning and errors (ws) 1`] = `
[webpack-dev-server] WARNING
⚠ Error: Warning from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
[webpack-dev-server] Errors while compiling. Reload prevented.,
[webpack-dev-server] ERROR
× Error: Error from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand All @@ -245,9 +245,9 @@ exports[`logging should work and log warnings by default (sockjs) 1`] = `
[webpack-dev-server] WARNING
⚠ Error: Warning from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand All @@ -263,9 +263,9 @@ exports[`logging should work and log warnings by default (ws) 1`] = `
[webpack-dev-server] WARNING
⚠ Error: Warning from compilation
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
│ at <rspack>/dist/Compiler.js:<line>:<row>
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
,
Expand Down
Loading

0 comments on commit 58711f6

Please sign in to comment.