What could be more elegant than testing the validity of a form in the same way you’d test your code?
source: github.com/ealush/vest
Vest is a powerful JavaScript data validation library that derives its syntax from modern frameworks such as Mocha or Jest. It is framework agnostic, so you can drop it into your code in no time.
Unit testing applied to data validation? YES!