8000 Feature request: Allow extending/overwriting smart-props · Issue #52 · google/intermock · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature request: Allow extending/overwriting smart-props #52

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

Open
yonatan-capitolis opened this issue Apr 11, 2021 · 0 comments
Open

Feature request: Allow extending/overwriting smart-props #52

yonatan-capitolis opened this issue Apr 11, 2021 · 0 comments

Comments

@yonatan-capitolis
Copy link
yonatan-capitolis commented Apr 11, 2021

smart-props are currently hard-coded here:
https://github.com/google/intermock/blob/master/src/lib/smart-props.ts#L16

It would be useful to be able to extend the Options API with smart-props support like so (possibly in a config file when used from CLI):

mock({
  smartProps: {
    // can be a value
    propA: 'some text value',
    // can be a function
    propB() {
      return Math.random()
    }
  }
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0