Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

Challenges with running test case examples due to missing implementation #418

Open
tafadzwagonera opened this issue Jan 11, 2021 · 0 comments

Comments

@tafadzwagonera
Copy link
Contributor

Sometimes the examples in the docs aren't easy to run due to missing implementation. A point in case would be https://adonisjs.com/docs/4.1/testing#_unit_tests Suppose a reader lands on this section but needs to run an example with minimal understanding about the validation module they wouldn't know how to do that without a UserValidator implementation. To run the example in that section they're force to dig through the docs and see how a Validator implementation looks like. And to add to the confusion there's nothing in docs explaining usage of app/Services. This is confusing. I suggest adding a mock implementation of app/Services/UserValidator along with a short explanation about encapsulating reusable functionality in service or helper classes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant