()
| 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); |