-
Notifications
You must be signed in to change notification settings - Fork 66
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
Break sinon.spy(Component.prototype, 'method') #47
Comments
+1 same problem with jest
|
98968ee might fixed this. Please try the latest master branch |
Please comment if doesn't work for you |
Just in case anyone else happens upon this, I'm fairly certain As a result, the are always considered a non-function properties. I didn't dig into |
@job13er just declare your class methods as class properties. |
@damianobarbati Thanks. That's always an option, but since I was looking at EDIT: Your comment did make me take a second look at why we weren't using class properties in the first place though, so thank you :) |
@job13er Maybe we should add this to the docs |
Was running into sinon stubs clashing with autobind as well - is there a chance to reopen this issue or is it considered WONTFIX? |
When using '@autoBind' on a component, then in tests
sinon.spy(Component.prototype, 'someMethod')
will yield an error:Sorry, currently I can't provide more detail, but I'm sure
@autobind
is the only variable between success/error in tests.The text was updated successfully, but these errors were encountered: