MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / asyncMethod

Method asyncMethod

packages/cloudflare/test/durableobject.test.ts:36–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34 it('Instruments async prototype methods and returns a promise', async () => {
35 const testClass = class {
36 async asyncMethod() {
37 return 'async-result';
38 }
39 };
40 const obj = Reflect.construct(instrumentDurableObjectWithSentry(vi.fn().mockReturnValue({}), testClass as any), []);
41 expect(obj.asyncMethod).toBe(obj.asyncMethod);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected