Skip to content

Commit 58711f6

Browse files
committed
test: tapable path placeholder in snapshot
1 parent c40006c commit 58711f6

File tree

3 files changed

+114
-102
lines changed

3 files changed

+114
-102
lines changed

tests/e2e/__snapshots__/logging.test.js.snap.webpack5

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ exports[`logging should work and log errors by default (sockjs) 1`] = `
2323
[webpack-dev-server] ERROR
2424
× Error: Error from compilation
2525
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
26-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
27-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
28-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
26+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
27+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
28+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
2929
│ at <rspack>/dist/Compiler.js:<line>:<row>
3030
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
3131
,
@@ -41,9 +41,9 @@ exports[`logging should work and log errors by default (ws) 1`] = `
4141
[webpack-dev-server] ERROR
4242
× Error: Error from compilation
4343
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
44-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
45-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
46-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
44+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
45+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
46+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
4747
│ at <rspack>/dist/Compiler.js:<line>:<row>
4848
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
4949
,
@@ -135,9 +135,9 @@ exports[`logging should work and log only error (sockjs) 1`] = `
135135
[webpack-dev-server] ERROR
136136
× Error: Error from compilation
137137
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
138-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
139-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
140-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
138+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
139+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
140+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
141141
│ at <rspack>/dist/Compiler.js:<line>:<row>
142142
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
143143
,
@@ -151,9 +151,9 @@ exports[`logging should work and log only error (ws) 1`] = `
151151
[webpack-dev-server] ERROR
152152
× Error: Error from compilation
153153
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
154-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
155-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
156-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
154+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
155+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
156+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
157157
│ at <rspack>/dist/Compiler.js:<line>:<row>
158158
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
159159
,
@@ -191,19 +191,19 @@ exports[`logging should work and log warning and errors (sockjs) 1`] = `
191191
[webpack-dev-server] WARNING
192192
⚠ Error: Warning from compilation
193193
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
194-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
195-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
196-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
194+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
195+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
196+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
197197
│ at <rspack>/dist/Compiler.js:<line>:<row>
198198
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
199199
,
200200
[webpack-dev-server] Errors while compiling. Reload prevented.,
201201
[webpack-dev-server] ERROR
202202
× Error: Error from compilation
203203
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
204-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
205-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
206-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
204+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
205+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
206+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
207207
│ at <rspack>/dist/Compiler.js:<line>:<row>
208208
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
209209
,
@@ -217,19 +217,19 @@ exports[`logging should work and log warning and errors (ws) 1`] = `
217217
[webpack-dev-server] WARNING
218218
⚠ Error: Warning from compilation
219219
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
220-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
221-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
222-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
220+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
221+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
222+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
223223
│ at <rspack>/dist/Compiler.js:<line>:<row>
224224
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
225225
,
226226
[webpack-dev-server] Errors while compiling. Reload prevented.,
227227
[webpack-dev-server] ERROR
228228
× Error: Error from compilation
229229
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
230-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
231-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
232-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
230+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
231+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
232+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
233233
│ at <rspack>/dist/Compiler.js:<line>:<row>
234234
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
235235
,
@@ -245,9 +245,9 @@ exports[`logging should work and log warnings by default (sockjs) 1`] = `
245245
[webpack-dev-server] WARNING
246246
⚠ Error: Warning from compilation
247247
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
248-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
249-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
250-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
248+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
249+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
250+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
251251
│ at <rspack>/dist/Compiler.js:<line>:<row>
252252
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
253253
,
@@ -263,9 +263,9 @@ exports[`logging should work and log warnings by default (ws) 1`] = `
263263
[webpack-dev-server] WARNING
264264
⚠ Error: Warning from compilation
265265
│ at Object.fn (<root>/tests/e2e/logging.test.js:<line>:<row>)
266-
│ at SyncHook.callAsyncStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
267-
│ at SyncHook.callStageRange (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
268-
│ at QueriedHook.call (<root>/node_modules/.pnpm/@rspack+lite-tapable@1.0.0/node_modules/@rspack/lite-tapable/dist/index.js:<line>:<row>)
266+
│ at SyncHook.callAsyncStageRange (<tapable>/index.js:<line>:<row>)
267+
│ at SyncHook.callStageRange (<tapable>/index.js:<line>:<row>)
268+
│ at QueriedHook.call (<tapable>/index.js:<line>:<row>)
269269
│ at <rspack>/dist/Compiler.js:<line>:<row>
270270
│ at last.function (<rspack>/dist/Compiler.js:<line>:<row>)
271271
,

0 commit comments

Comments
 (0)