~/talk

Up your form validation game with Vest

Talkat Svelte Summit Fall 2021 · on Saturday, 2021-11-20· [frontend-architecture, testing]
slides:none on file

Vest is a framework-agnostic form-validation library that claims to replace ad hoc code with test-like suites where you create suite and write named tests using enforce assertions, supporting per-field validation with only, non-blocking warnings, async tests that return promises, res.done callbacks, and memoization via test.memo to avoid repeat server checks. The demo wires Vest into a Svelte form, uses res.getErrors/getWarnings and a cn utility for classes, disables submit when invalid, handles pending spinners, and the example works with only a few lines of integration.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27Form validation problems
  3. 3:15Ideal validation solution
  4. 4:59Basic Vest setup
  5. 7:52Multi-field validation
  6. 9:16Field-specific validation
  7. 9:58UI integration
  8. 12:06Warning validations
  9. 13:33Async validation
  10. 16:02Skip conditional validation
  11. 17:06Memoization
  12. 18:10Vest features overview
  13. 19:13Conclusion
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.