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
Add integration tests #1073
Comments
That'd be awesome. Fun fact, that's how express-validator used to have tests in the era before time, using supertest: I really like the lib but the style back then was quite difficult to follow for me. |
How about fixtures/snapshots where the output is the the |
Sounds good to me! |
If you have a detailed specification on what should be done I can start integration tests. |
Thanks for the interest @danizavtz! I hope I am not too late, but here is a list of what integration tests should do in this case:
e.g. // input file
export default {
body: { name: 'foo' },
query: { }
} // chains file
body("name").isString().isLength(10) // out file
export const errors = []
// in this case the req object was not updated, but it may not be so
export const req = {
body: { name: 'foo' },
query: { }
} Please ping me if you are still interested in this and feel free to ask any question! |
Currently we only test units, I was thinking about adding some high level tests to better catch issues as the one addressed in #1070.
@gustavohenke what do you think?
The text was updated successfully, but these errors were encountered: