@@ -12,6 +12,7 @@ snapshot[`captureException 1`] = `
12
12
},
13
13
os: {
14
14
name: " {{platform}}" ,
15
+ version: " {{version}}" ,
15
16
},
16
17
runtime: {
17
18
name: " deno" ,
@@ -47,7 +48,7 @@ snapshot[`captureException 1`] = `
47
48
filename: " app:///test/mod.test.ts" ,
48
49
function: " ?" ,
49
50
in_app: true ,
50
- lineno: 47 ,
51
+ lineno: 46 ,
51
52
post_context: [
52
53
" " ,
53
54
" await delay(200);" ,
@@ -73,7 +74,7 @@ snapshot[`captureException 1`] = `
73
74
filename: " app:///test/mod.test.ts" ,
74
75
function: " something" ,
75
76
in_app: true ,
76
- lineno: 44 ,
77
+ lineno: 43 ,
77
78
post_context: [
78
79
" }" ,
79
80
" " ,
@@ -86,7 +87,7 @@ snapshot[`captureException 1`] = `
86
87
pre_context: [
87
88
" Deno.test('captureException', async t => {" ,
88
89
" let ev: sentryTypes.Event | undefined;" ,
89
- " const [, client] = getTestClient(event => {" ,
90
+ " const client = getTestClient(event => {" ,
90
91
" ev = event;" ,
91
92
" });" ,
92
93
" " ,
@@ -128,6 +129,14 @@ snapshot[`captureException 1`] = `
128
129
129
130
snapshot [` captureMessage 1` ] = `
130
131
{
132
+ breadcrumbs : [
133
+ {
134
+ category: " sentry.event" ,
135
+ event_id: " d5c51658d79a48e3ab9e90b17abe0ff2" ,
136
+ message: " Error: Some unhandled error" ,
137
+ timestamp: 0 ,
138
+ },
139
+ ],
131
140
contexts : {
132
141
app: {
133
142
app_start_time: " {{time}}" ,
@@ -138,6 +147,7 @@ snapshot[`captureMessage 1`] = `
138
147
},
139
148
os: {
140
149
name: " {{platform}}" ,
150
+ version: " {{version}}" ,
141
151
},
142
152
runtime: {
143
153
name: " deno" ,
@@ -185,3 +195,162 @@ snapshot[`captureMessage 1`] = `
185
195
timestamp : 0 ,
186
196
}
187
197
` ;
198
+
199
+ snapshot [` captureMessage twice 1` ] = `
200
+ {
201
+ breadcrumbs : [
202
+ {
203
+ category: " sentry.event" ,
204
+ event_id: " d5c51658d79a48e3ab9e90b17abe0ff2" ,
205
+ message: " Error: Some unhandled error" ,
206
+ timestamp: 0 ,
207
+ },
208
+ {
209
+ category: " sentry.event" ,
210
+ event_id: " 32076923fe4e47dc96198c3b7e1c7301" ,
211
+ level: " info" ,
212
+ message: " Some error message" ,
213
+ timestamp: 0 ,
214
+ },
215
+ ],
216
+ contexts : {
217
+ app: {
218
+ app_start_time: " {{time}}" ,
219
+ },
220
+ device: {
221
+ arch: " {{arch}}" ,
222
+ processor_count: 0 ,
223
+ },
224
+ os: {
225
+ name: " {{platform}}" ,
226
+ version: " {{version}}" ,
227
+ },
228
+ runtime: {
229
+ name: " deno" ,
230
+ version: " {{version}}" ,
231
+ },
232
+ trace: {
233
+ span_id: " {{id}}" ,
234
+ trace_id: " {{id}}" ,
235
+ },
236
+ typescript: {
237
+ name: " TypeScript" ,
238
+ version: " {{version}}" ,
239
+ },
240
+ v8: {
241
+ name: " v8" ,
242
+ version: " {{version}}" ,
243
+ },
244
+ },
245
+ environment : " production" ,
246
+ event_id : " {{id}}" ,
247
+ level : " info" ,
248
+ message : " Some error message" ,
249
+ platform : " javascript" ,
250
+ sdk : {
251
+ integrations: [
252
+ " InboundFilters" ,
253
+ " FunctionToString" ,
254
+ " LinkedErrors" ,
255
+ " Dedupe" ,
256
+ " Breadcrumbs" ,
257
+ " DenoContext" ,
258
+ " ContextLines" ,
259
+ " NormalizePaths" ,
260
+ " GlobalHandlers" ,
261
+ ],
262
+ name: " sentry.javascript.deno" ,
263
+ packages: [
264
+ {
265
+ name: " denoland:sentry" ,
266
+ version: " {{version}}" ,
267
+ },
268
+ ],
269
+ version: " {{version}}" ,
270
+ },
271
+ timestamp : 0 ,
272
+ }
273
+ ` ;
274
+
275
+ snapshot [` captureMessage twice 2` ] = `
276
+ {
277
+ breadcrumbs : [
278
+ {
279
+ category: " sentry.event" ,
280
+ event_id: " d5c51658d79a48e3ab9e90b17abe0ff2" ,
281
+ message: " Error: Some unhandled error" ,
282
+ timestamp: 0 ,
283
+ },
284
+ {
285
+ category: " sentry.event" ,
286
+ event_id: " 32076923fe4e47dc96198c3b7e1c7301" ,
287
+ level: " info" ,
288
+ message: " Some error message" ,
289
+ timestamp: 0 ,
290
+ },
291
+ {
292
+ category: " sentry.event" ,
293
+ event_id: " 4b72be0d7c324a7c8f94b05b2da12119" ,
294
+ level: " info" ,
295
+ message: " Some error message" ,
296
+ timestamp: 0 ,
297
+ },
298
+ ],
299
+ contexts : {
300
+ app: {
301
+ app_start_time: " {{time}}" ,
302
+ },
303
+ device: {
304
+ arch: " {{arch}}" ,
305
+ processor_count: 0 ,
306
+ },
307
+ os: {
308
+ name: " {{platform}}" ,
309
+ version: " {{version}}" ,
310
+ },
311
+ runtime: {
312
+ name: " deno" ,
313
+ version: " {{version}}" ,
314
+ },
315
+ trace: {
316
+ span_id: " {{id}}" ,
317
+ trace_id: " {{id}}" ,
318
+ },
319
+ typescript: {
320
+ name: " TypeScript" ,
321
+ version: " {{version}}" ,
322
+ },
323
+ v8: {
324
+ name: " v8" ,
325
+ version: " {{version}}" ,
326
+ },
327
+ },
328
+ environment : " production" ,
329
+ event_id : " {{id}}" ,
330
+ level : " info" ,
331
+ message : " Another error message" ,
332
+ platform : " javascript" ,
333
+ sdk : {
334
+ integrations: [
335
+ " InboundFilters" ,
336
+ " FunctionToString" ,
337
+ " LinkedErrors" ,
338
+ " Dedupe" ,
339
+ " Breadcrumbs" ,
340
+ " DenoContext" ,
341
+ " ContextLines" ,
342
+ " NormalizePaths" ,
343
+ " GlobalHandlers" ,
344
+ ],
345
+ name: " sentry.javascript.deno" ,
346
+ packages: [
347
+ {
348
+ name: " denoland:sentry" ,
349
+ version: " {{version}}" ,
350
+ },
351
+ ],
352
+ version: " {{version}}" ,
353
+ },
354
+ timestamp : 0 ,
355
+ }
356
+ ` ;
0 commit comments