MCPcopy Index your code
hub / github.com/getsentry/sentry-react-native / callAllScopeMethods

Function callAllScopeMethods

packages/core/test/wrapper.test.ts:78–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76const RNSentry = RN.NativeModules.RNSentry as Spec;
77
78const callAllScopeMethods = () => {
79 NATIVE.addBreadcrumb({
80 message: 'test',
81 data: {
82 map: { a: 1 },
83 array: [1, 2, 3],
84 unique: 123,
85 },
86 });
87 NATIVE.clearBreadcrumbs();
88 NATIVE.setUser({
89 id: 'setUser',
90 });
91 NATIVE.setTag('key', 'value');
92 NATIVE.setContext('key', {
93 value: 'value',
94 data: {
95 map: { a: 1 },
96 array: [1, 2, 3],
97 unique: 123,
98 },
99 });
100 NATIVE.setExtra('key', 'value');
101};
102
103describe('Tests Native Wrapper', () => {
104 beforeEach(() => {

Callers 1

wrapper.test.tsFile · 0.85

Calls 6

addBreadcrumbMethod · 0.65
clearBreadcrumbsMethod · 0.65
setUserMethod · 0.65
setTagMethod · 0.65
setContextMethod · 0.65
setExtraMethod · 0.65

Tested by

no test coverage detected