Proxy wrapper for objects returned by mocked methods.
In record mode, every property access (method call) on the wrapped object is forwarded
to the real target and the call is recorded into the snapshot store with key
call:{refId}:{method}:{hash}.
In replay mode, the proxy returns a function that looks up the recorded entry in the
snapshot store and returns the deserialised result (or another MockHandler for nested
objects).
Description
Proxy wrapper for objects returned by mocked methods.
In record mode, every property access (method call) on the wrapped object is forwarded to the real target and the call is recorded into the snapshot store with key
call:{refId}:{method}:{hash}.In replay mode, the proxy returns a function that looks up the recorded entry in the snapshot store and returns the deserialised result (or another MockHandler for nested objects).
Features:
store.depthlevels deep.then,constructor, and#-prefixed properties are forwarded to avoid breaking thenable detection and private field access.