Skip to content

Community & Examples ​

Real-world examples, tutorials, and community content for TWD.

Contributors ​

People from the community who have shipped code, docs, or other improvements to TWD. If you're starting out in tech and looking for a beginner-friendly first PR, see the open issues — reach out and I'll help with setup and walk you through it.

ContributorContribution
Francisco Javier RodriguezDocumentation — PR #230
Guillermo Ruiz ArranzCode — PR #232
Roberto Gomez FabregaDocumentation — PR #239

Live Showcase ​

See TWD testing real shadcn/ui components with live code and tests running in the browser:

TWD + shadcn/ui Showcase — Interactive demo with component tests you can run yourself.

Example Repositories ​

RepositoryFrameworkWhat it demonstrates
twd-shadcnReact + shadcn/uiTesting shadcn components (forms, dialogs, tables) with live demo
twd-react-routerReact Router (Framework Mode)SSR-compatible setup with createRoutesStub, loader mocking
twd-tanstack-exampleReact + TanStack RouterTanStack Router integration with route + loader testing
twd-vue-exampleVueVue integration with bundled setup
twd-nuxt-exampleNuxt 4 (SSR)Pages tested in the browser against a real SQLite backend, with a dev-only reset endpoint
twd-angular-exampleAngularAngular integration with manual test imports
twd-auth0React + Auth0Auth session mocking with Sinon stubs
twd-auth0-pkceReact + Auth0 PKCEPKCE flow mocking for SPAs
twd-docs-tutorialReactStep-by-step companion to the tutorial
twd-create-react-appCreate React App (Webpack)require.context test loading, react-router loaders/actions, CI with twd-cli and contract validation
twd-vanillajsVanilla JS (no bundler)TWD loaded from a CDN via an import map, counter + todo list, API mocking, CI with twd-cli and contract validation
twd-htmxHTMX (no bundler)TWD loaded from a CDN, HTMX todo list tested against a real HTML backend with a dev-only reset endpoint
twd-cellsOpen Cells (Lit)BBVA's Web Components framework: hashbang-router pages, request mocking, real localStorage, and CI with coverage via the vite plugin
frontend-challengeReact + ViteTesting Library render() component tests running in the browser next to jsdom tests of the same component

In-Repo Examples ​

The main TWD repository also includes working examples:

Videos ​

Podcasts ​

  • Una nueva forma de testear frontend con TWD | Kevin Martinez #83 (Spanish)

  • How to Test This - Episode #14: How to Test with Testing While Developing (TWD) - Kevin Martínez

Blog Posts ​

Written by Kevin Martinez, TWD maintainer. More posts on DEV.to. Follow on Bluesky.

Released under the MIT License.