Skip to content

Commit 075b8af

Browse files
authored
Fix test (#254)
1 parent a0138f7 commit 075b8af

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

packages/toucan-js/test/__snapshots__/index.spec.ts.snap

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ exports[`Toucan captureException Error with cause 1`] = `
5757
"integrations": [
5858
"RequestData",
5959
"LinkedErrors",
60+
"ZodErrors",
6061
],
6162
"name": "toucan-js",
6263
"packages": ArrayContaining [
@@ -112,6 +113,7 @@ exports[`Toucan captureException captureException: primitive 1`] = `
112113
"integrations": [
113114
"RequestData",
114115
"LinkedErrors",
116+
"ZodErrors",
115117
],
116118
"name": "toucan-js",
117119
"packages": ArrayContaining [
@@ -167,6 +169,7 @@ exports[`Toucan captureException captureException: primitive 2`] = `
167169
"integrations": [
168170
"RequestData",
169171
"LinkedErrors",
172+
"ZodErrors",
170173
],
171174
"name": "toucan-js",
172175
"packages": ArrayContaining [
@@ -222,6 +225,7 @@ exports[`Toucan captureException captureException: primitive 3`] = `
222225
"integrations": [
223226
"RequestData",
224227
"LinkedErrors",
228+
"ZodErrors",
225229
],
226230
"name": "toucan-js",
227231
"packages": ArrayContaining [
@@ -283,6 +287,7 @@ exports[`Toucan captureException object 1`] = `
283287
"integrations": [
284288
"RequestData",
285289
"LinkedErrors",
290+
"ZodErrors",
286291
],
287292
"name": "toucan-js",
288293
"packages": ArrayContaining [
@@ -337,6 +342,7 @@ exports[`Toucan captureException runtime thrown Error 1`] = `
337342
"integrations": [
338343
"RequestData",
339344
"LinkedErrors",
345+
"ZodErrors",
340346
],
341347
"name": "toucan-js",
342348
"packages": ArrayContaining [
@@ -377,6 +383,7 @@ exports[`Toucan captureMessage sends correct body to Sentry 1`] = `
377383
"integrations": [
378384
"RequestData",
379385
"LinkedErrors",
386+
"ZodErrors",
380387
],
381388
"name": "toucan-js",
382389
"packages": ArrayContaining [
@@ -410,6 +417,7 @@ exports[`Toucan general invalid URL does not fail 1`] = `
410417
"integrations": [
411418
"RequestData",
412419
"LinkedErrors",
420+
"ZodErrors",
413421
],
414422
"name": "toucan-js",
415423
"packages": ArrayContaining [
@@ -461,6 +469,7 @@ exports[`Toucan stacktraces attachStacktrace = true sends stacktrace with captur
461469
"integrations": [
462470
"RequestData",
463471
"LinkedErrors",
472+
"ZodErrors",
464473
],
465474
"name": "toucan-js",
466475
"packages": ArrayContaining [

packages/toucan-js/test/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const VALID_DSN = 'https://123:[email protected]/123';
1414
// This is the default buffer size
1515
const DEFAULT_BUFFER_SIZE = 30;
1616

17-
const DEFAULT_INTEGRATIONS = ['RequestData', 'LinkedErrors'];
17+
const DEFAULT_INTEGRATIONS = ['RequestData', 'LinkedErrors', 'ZodErrors'];
1818

1919
/**
2020
* We don't care about exact values of pseudorandomized and time-related properties, as long as they match the type we accept them.

0 commit comments

Comments
 (0)