codeforamerica / rva-screening

Health service prescreener for sharing patient eligibility data.
http://quickscreenrva.com
BSD 3-Clause "New" or "Revised" License
11 stars 8 forks source link

front-end unit tests & form validation #227

Closed mapsam closed 9 years ago

mapsam commented 9 years ago

This PR adds front-end unit tests to the ./tests/front/ directory.

Things to be tested:

This also incorporates all of the validation.js scripts by @bengolder in an old PR. Woop!

mapsam commented 9 years ago

Done! Our testing framework is in place with a good number of tests to get us going. Not complete, I'm sure, but I think at this point we start testing for bugs once they arise per @wpietri's suggestion yesterday.

Some major changes:

How do you run tests?

Once this is merged, you'll need to update node modules with npm install. I've decided to not run tests every time watch reloads because it can be a big bummer on workflow (adds extra time on reloads) so tests need to be run separately using:

gulp test

Onward!

nailed-it

bengolder commented 9 years ago

Nice going @mapsam!