Posts by Kevin Martinez

@Kevin Martinez

Kevin Martínez

TWD (testing while developing) maintainer
Spain twd.dev Joined June 2025
3k Points • 115 Badges • 24 Connections • 68 Followers • 25 Following

Comments by Kevin Martinez

Sep 1 • Articles • 6 min read
Every Testing Library test you have written runs against a simulated DOM. You know this. You accepted it years ago, along with the small pile of things that come with it: no real layout, nothing ever drawn on a screen, jsdom throwing on APIs it does ...
Aug 5 • Articles • 3 min read
You open a frontend pull request. The diff is 400 lines, an AI agent wrote most of it, and the description says "adds the checkout flow". CI is green. You read the diff. It looks reasonable. You still have no idea what the UI actually does. So you ...
Jul 26 • Articles • 3 min read
Not every app has a bundler. Plenty of real software is still a folder of HTML and JavaScript served as static files: internal tools, landing pages, small products, and anything deliberately kept simple. These apps ship and they matter, but their tes...
Jul 3 • Articles • 6 min read
Automated accessibility testing usually means one thing: point a scanner at the page, let it check the initial HTML against a set of WCAG rules, and turn green. Missing alt text, an unlabeled input, low-contrast text at load. Caught. Done. Then a us...
Jun 23 • Articles • 5 min read
Payment integrations are one of the hardest things to test in a web app. The SDK renders its own UI, controls its own form fields, and fires callbacks when the user completes a payment. You can't programmatically fill in a credit card number. You can...
Jun 23 • Tutorials • 4 min read
The first time you try to test a TanStack app the way the React Testing Library docs suggest, the test file gets bigger than the component. You spin up a memory router, instantiate a new QueryClient per test, wrap everything in QueryClientProvider an...
Dec 20, 2025 • Tutorials • 3 min read
One of the biggest milestones we’ve been working on is now live: TWD 1.3.x brings full multi-framework support with a single unified setup. This means you can now drop TWD into React, Vue, Solid, and Angular projects using the exact same initializat...
post-cover-8455
Nov 17, 2025 • Tutorials • 7 min read
In Part 2https://coderlegion.com/7371/testing-while-developing-part-2-selectors-assertions-and-user-events, we explored assertions, selectors, and user interactions in TWD. We used those tools to test the homepage, which only had a single button. N...
post-cover-7406
Nov 17, 2025 • Tutorials • 4 min read
TWD still has many more advanced features — such as function mocking — but with what we’ve covered so far, you already have everything a solid testing tool needs. In this step, we’ll see how to collect code coverage from your TWD tests and visualize ...
post-cover-7408
Nov 17, 2025 • Tutorials • 3 min read
In this part, we’ll look at a new feature in TWD: support for Testing Library–style selectors. These selectors are widely known in the community, and while you could technically use them before TWD is very flexible, now they’re fully integrated — inc...
post-cover-7410
Nov 15, 2025 • Tutorials • 4 min read
In the previous posthttps://coderlegion.com/7370/testing-while-developing-part-1-installation-and-first-test, we set up our basic testing configuration and used the visit command to load our app. Now, we’re ready to make our tests a little more meani...
Nov 14, 2025 • Tutorials • 4 min read
We continue with the sixth part of this series on React Router Data Mode. This time, we'll talk about actions: one of the key pieces for data handling that React Router offers. If you're coming from the previous posthttps://coderlegion.com/4297/rea...
Jul 13, 2025 • Tutorials • 4 min read
Let's move on to the third part of this tutorial series. In this case, we'll look at a concept that comes from Remix and can now also be found in React Router: loaders. If you're coming from the previous tutorialhttps://coderlegion.com/3682/react-ro...
Jul 7, 2025 • Articles • 2 min read
TypeScript’s utility types give you powerful ways to transform and manipulate existing types. If you’ve already used types like Partial or Pick, it’s time to expand your toolbox. In this article, we'll focus on five highly useful utility types: O...
Jun 30, 2025 • Articles • 3 min read
If you're reading this, you're probably working with React or learning how to use it. And if that’s the case, you’ve surely heard of react-router, the most popular library for routing in React apps for years. But what you may not know is that in its...
chevron_left