-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Mobx testing #1888
Comments
class X {
@computed get nonStubable() {
return this.stubablle()
}
/* private */ stubable() {
// this one is stubable, but the indirection won't loose any of the semantic benefits of `nonStubable`
}
} |
@mishk0 Any updates on this issue? |
@mweststrate thanks! |
This was referenced Jun 18, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or questions. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since v5.9.0 computed properties became not configurable. That's probably why Sinon.js throws an error, while stubbing a getter:
TypeError: Cannot redefine property
.Are there any ways to stub/spy a getter, best practices?
The text was updated successfully, but these errors were encountered: