Skip to content
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

feat!: support stubbed properties as well as methods #12

Merged
merged 2 commits into from
Nov 1, 2023

Commits on Nov 1, 2023

  1. feat!: support stubbed properties as well as methods

    Changes the method map passed to `stubInterface` and friends to be
    a `Partial` of the stubbed type.
    
    This way we can pass values for properties and `Sinon.stub`s for
    methods, which is usually better since we freqently want to stub
    behaviour as well as return types which we can't do when we're just
    passing values.
    
    BREAKING CHANGE: method map values must now be wrapped in `Sinon.stub().returns()`
    achingbrain committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    e2bae34 View commit details
    Browse the repository at this point in the history
  2. chore: linting

    achingbrain committed Nov 1, 2023
    Configuration menu
    Copy the full SHA
    8a314de View commit details
    Browse the repository at this point in the history