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

Change Automock Default-Values #1429

Open
ChristianKlima opened this issue Oct 6, 2022 · 1 comment
Open

Change Automock Default-Values #1429

ChristianKlima opened this issue Oct 6, 2022 · 1 comment

Comments

@ChristianKlima
Copy link

To mock our backend we use factories in which we set default values. It would save us a lot of code if we could use this api. Unfortunately, you cannot change the default values. Empty strings are not an alternative, since an empty string can also simply indicate that the value has not been set (it doesn't have to come from the backend then). The random function doesn't help either, since our tests are based on fixed values. I think it wouldn't be difficult to make the default values ​​configurable? It would really help us a lot.

@Philipp3211
Copy link

Does the registerMock function help you?

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

2 participants