-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Object destructuring + rest doesn't work #129
Comments
Thank you for the detailed report! |
Maybe the proxy object has a method for destructuring that we're missing. |
Yes, we need to add a trap to handle the spread assignments! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I cant use a Substitute mock for code that uses object destructuring + rest
To Reproduce
Codesandbox:
https://codesandbox.io/s/flamboyant-sea-o5zf4?file=/src/index.ts:0-469
Expected behavior
I should be able to test functions using destructuring with the rest pattern
Environment
3.9.3
1.145.0
12
The text was updated successfully, but these errors were encountered: