Evyatar Alush
Form Validation. The Tested Way
#1about 5 minutes
Why user experience with forms is often broken
A personal story about a frustrating tax form highlights common UX failures like unclear requirements and delayed feedback.
#2about 6 minutes
Analyzing common form validation patterns and their pitfalls
Existing validation solutions often lack structure, are hard to test, and create tight coupling with UI frameworks.
#3about 2 minutes
Adopting a unit testing syntax for declarative validations
Vest is inspired by unit testing libraries like Mocha and Jest to create declarative, readable, and separate validation suites.
#4about 5 minutes
Live coding: Setting up a basic validation suite in React
Learn how to create a validation suite with Vest, connect it to a React form, and display error messages for individual fields.
#5about 5 minutes
Refining validation UX with field isolation and warnings
Use Vest's `only` function to validate a single field on interaction and implement non-blocking warnings for optional suggestions.
#6about 7 minutes
Implementing complex asynchronous and memoized validations
Manage asynchronous server-side checks, skip them conditionally with `skipWhen`, and prevent redundant calls using memoization.
#7about 2 minutes
A summary of Vest's features and future roadmap
Vest is a tiny, stateful library that offers declarative, framework-agnostic validations, with a full TypeScript rewrite in version 4.
#8about 5 minutes
Q&A: Handling dynamic forms and global validation rules
Learn how to handle debounced async calls, define global rules by extending `enforce`, and manage dynamic forms with `test.each` or manual cleanup.
Related jobs
Jobs that call for the skills explored in this talk.
Douglas GmbH
Düsseldorf, Germany
Intermediate
Senior
TypeScript
React
Matching moments
03:48 MIN
Automating formal processes risks losing informal human value
What 2025 Taught Us: A Year-End Special with Hung Lee
04:22 MIN
Why HR struggles with technology implementation and adoption
What 2025 Taught Us: A Year-End Special with Hung Lee
03:38 MIN
Balancing the trade-off between efficiency and resilience
What 2025 Taught Us: A Year-End Special with Hung Lee
04:57 MIN
Developing resilience by expanding your capacity for failure
What 2025 Taught Us: A Year-End Special with Hung Lee
02:44 MIN
Rapid-fire thoughts on the future of work
What 2025 Taught Us: A Year-End Special with Hung Lee
03:39 MIN
Breaking down silos between HR, tech, and business
What 2025 Taught Us: A Year-End Special with Hung Lee
11:32 MIN
The industry's focus on frameworks over web fundamentals
WeAreDevelopers LIVE – Frontend Inspirations, Web Standards and more
06:04 MIN
The importance of a fighting spirit to avoid complacency
The Future of HR Lies in AND – Not in OR
Featured Partners
Related Videos
10 must-know design patterns for JS Devs
Erick Wendel
Lies we Tell Ourselves As Developers
Stefan Baumgartner
The Lean Web
Chris Ferdinandi
What the heck do "declarative" and "reactive" actually mean?
André Kovac
The Eternal Sunshine of the Zero Build Pipeline
M4dz
Component styling in a JS world — evolve your mental model
Maximilian Heinrich
The 2025 State of JavaScript Testing
Daniel Afonso
Common Mistakes in Vue.js and How to Avoid Them
Daniel Kelly
Related Articles
View all articles



From learning to earning
Jobs that call for the skills explored in this talk.

![Fullstack Engineer [React.js, TypeScript, Inline Styling]](https://wearedevelopers.imgix.net/public/default-job-listing-cover.png?w=400&ar=3.55&fit=crop&crop=entropy&auto=compress,format)
CrowdBuilding
Amsterdam, Netherlands
React
DevOps
Node.js
TypeScript
React Native
+3


Provectus
Remote
API
GIT
JSON
REST
+11

Jack & Jill\u002fexternal Ats
Zürich, Switzerland
Remote
React
TypeScript

Jack & Jill\u002FExternal ATS
München, Germany
React
TypeScript

SAFELOG GmbH
Bremen, Germany
Remote
React
Node.js
TypeScript
Material Design


European Recruitment
Municipality of Valladolid, Spain
API
REST
React
Next.js
GraphQL
+3