Closed bohdanbirdie closed 4 years ago
ok, @ardeois should be good for the review 👍
@bohdanbirdie You should be good to update your branch with master.
I've updated all dependencies and added precommit hook that should run prettier for you. So it will format the README.md
properly
@ardeois ok, updated everything, synced, added test and changed to pascal case as thee default
This PR is going to fix the issue with pascalCase error, initially committed by @keesvanlierop Also, I extended that functionality to support upper case enums as well.
The other thing that was failing for me was a recursive nesting. Check this schema
so, when I create a mock of a task -> user mock will be created, but then user mock will create a task mock and this will run recursively until the stack can't hold it anymore. Overrides won't help because they come after the mock is created so I switched to the getters, so they won't create a nested mock if there is an override.