garageScript / curriculum

GarageScript Curriculum
21 stars 164 forks source link

Run tests before committing #391

Closed flacial closed 8 months ago

flacial commented 1 year ago

From: https://github.com/garageScript/c0d3-cli/issues/41

The idea is to add testing to the submitting process so that once a user selects the challenge to be submitted, it will pass through the tests before getting sent to c0d3.

This will make the review process a bit easier, mentors won't have to worry if the code works or not and can focus on other aspects of the review.


Flacial's proposal:

Use husky to run yarn test/npm test before git commit is run. One downside is that what if the user is submitting from a different directory?