Test Driven Development · Archive

2025

  1. How I Write Tests I tend to like writing tests more than the average Joe 🥁. For me, there’s something really satisfying about using a test to figure out how I want an API surface to feel, iterating on the failing test until the error message is exactly what I want to see in the test log if the feature breaks, then implementing the feature and seeing the test pass as expected, followed by refining both the implementation and test code to a state that I’d be happy to revisit/reread in 2 years.

2024

  1. Using Quasar in a custom Vue component library How to build a Vue component library that uses Quasar internally, including testing with Storybook.
  2. Creating a custom Vue component library with Storybook and Vitest Many developers are familiar with using a component library (e.g. Vuetify, Quasar, PrimeVue, etc.), but there comes a time when it’s useful to create your own. Multiple projects which should share custom components. A large project which is hard to test. This comprehensive, step-by-step guide1 will take you from a new, empty folder all the way to a fully-functional component library with robust automated testing tools which follow software engineering best practices. The techniques described here are neither theoretical nor a mere “proof-of-concept” – they have been used successfully in critical production applications.

Years