-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The proxy should be completely indistinguishable from the proxied object for the consuming code. When you see some difference in output, it's a "feature" of the runtime. So this is more of an issue of the introspection tools of these libraries/nodejs. However I just tried vscode/chrome/terminal and the string output is always the original object (even for |
Beta Was this translation helpful? Give feedback.
-
Thank you, it seems to work correctly with "raw" Jest so i suppose this is a problem with Wallaby, i'm gonna see with them. |
Beta Was this translation helpful? Give feedback.
-
Just want to add that If you'd like to see the real proxy structure in browser console without calling
|
Beta Was this translation helpful? Give feedback.
The proxy should be completely indistinguishable from the proxied object for the consuming code. When you see some difference in output, it's a "feature" of the runtime. So this is more of an issue of the introspection tools of these libraries/nodejs. However I just tried vscode/chrome/terminal and the string output is always the original object (even for
util.inspect
by default - there is a flag) or in case of interactive env (debugger/chrome console) the object is inspectable under[[target]]
prop. Did not try jest.