Write Tests. Generate UI. Profit!
summary
An open‑source library called Spectate generates React state logic from the tests themselves, claiming one can write specs and have state/actions produced. The demo builds an email signup form using the new Spec API: useSpec from spectate‑react, NewInput/NewText variables, click/enter/doEffect steps and a post.json effect that logs the payload. Markup is plain React with props spread from the spec; changing input type to password and reading values with getVal succeeds in the live demo, producing the expected console post.
AI-written summary · about
related talks
45mWrite fewer tests! Model-based testing in React
18mTesting React in a Right Way
22mElizabeth Funk - An Introduction to React Testing Library
01h 00mTest Driving React Applications
24mUsing React Testing Library to Write Stronger Tests
10mTesting React Applications
30mTesting React Applications
53mTesting React Applications
