Skip to content

Commit 17d8f88

Browse files
committed
test: Store breadcrumbs in the global variable in integration tests
1 parent 7cdab60 commit 17d8f88

File tree

1 file changed

+4
-0
lines changed
  • packages/browser/test/integration

1 file changed

+4
-0
lines changed

packages/browser/test/integration/init.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ window.originalBuiltIns = {
1818

1919
// expose events so we can access them in our tests
2020
window.sentryData = [];
21+
window.sentryBreadcrumbs = [];
2122

2223
// stub transport so we don't actually transmit any data
2324
function DummyTransport() {}
@@ -50,6 +51,9 @@ Sentry.init({
5051
) {
5152
return null;
5253
}
54+
55+
sentryBreadcrumbs.push(breadcrumb);
56+
5357
return breadcrumb;
5458
},
5559
});

0 commit comments

Comments
 (0)