@@ -248,19 +248,19 @@ describe('registerWebWorker and webWorkerIntegration', () => {
248
248
249
249
it ( 'works together' , ( ) => {
250
250
( helpers . WINDOW as any ) . _sentryDebugIds = {
251
- 'main-file1.js' : 'main-debug-1' ,
252
- 'main-file2.js' : 'main-debug-2' ,
253
- 'shared-file.js' : 'main-debug-id' ,
251
+ 'Error at \n / main-file1.js' : 'main-debug-1' ,
252
+ 'Error at \n / main-file2.js' : 'main-debug-2' ,
253
+ 'Error at \n / shared-file.js' : 'main-debug-id' ,
254
254
} ;
255
255
256
256
let cb : ( ( arg0 : any ) => any ) | undefined = undefined ;
257
257
258
258
// Setup mock worker
259
259
const mockWorker = {
260
260
_sentryDebugIds : {
261
- 'worker-file1.js' : 'worker-debug-1' ,
262
- 'worker-file2.js' : 'worker-debug-2' ,
263
- 'shared-file.js' : 'worker-debug-id' ,
261
+ 'Error at \n / worker-file1.js' : 'worker-debug-1' ,
262
+ 'Error at \n / worker-file2.js' : 'worker-debug-2' ,
263
+ 'Error at \n / shared-file.js' : 'worker-debug-id' ,
264
264
} ,
265
265
addEventListener : vi . fn ( ( _ , l ) => ( cb = l ) ) ,
266
266
postMessage : vi . fn ( message => {
@@ -281,11 +281,11 @@ describe('registerWebWorker and webWorkerIntegration', () => {
281
281
} ) ;
282
282
283
283
expect ( ( helpers . WINDOW as any ) . _sentryDebugIds ) . toEqual ( {
284
- 'main-file1.js' : 'main-debug-1' ,
285
- 'main-file2.js' : 'main-debug-2' ,
286
- 'shared-file.js' : 'main-debug-id' ,
287
- 'worker-file1.js' : 'worker-debug-1' ,
288
- 'worker-file2.js' : 'worker-debug-2' ,
284
+ 'Error at \n / main-file1.js' : 'main-debug-1' ,
285
+ 'Error at \n / main-file2.js' : 'main-debug-2' ,
286
+ 'Error at \n / shared-file.js' : 'main-debug-id' ,
287
+ 'Error at \n / worker-file1.js' : 'worker-debug-1' ,
288
+ 'Error at \n / worker-file2.js' : 'worker-debug-2' ,
289
289
} ) ;
290
290
} ) ;
291
291
} ) ;
0 commit comments