davipon.hashnode.devDev Retro 2022: Inside Wants OutYears ago, a friend sent me a youtube video and said, "You need to check this out." My mind was blown away in the next five minutes. https://youtu.be/_DfQC5qHhbo I had zero idea what was happening as a guitar beginner. It was the first time I heard...Dec 19, 2022ยท7 min read
davipon.hashnode.devSvelte Component Test RecipesIn this blog post, we'll use vitest, @testing-library/svelte, and svelte-htm to test Svelte components that seemed to be hard to test. Such as two-way bindings, name slots, Context API, ...etc. As a Svelte advocate, the fantastic DX is one of the rea...Sep 19, 2022ยท14 min read
davipon.hashnode.devTest Svelte Component Using Vitest & PlaywrightHi ๐, I'm David Peng. It's been a while since my last blog post. In the last two months, I added 100+ unit/ component/ e2e tests in my Svelte project (yeah, I didn't do TDD because I wasn't familiar with testing enough ๐ ). I experimented with diffe...Jul 27, 2022ยท7 min read
davipon.hashnode.devBuild a Svelte Component To Draw SVG On HoverIn this post, I'll share my journey of building a reusable Svelte component to draw SVG on hover. Begin by trying to reduce boilerplate in my work project and publishing my first npm package. It's great if you've already known below things: Svelte T...Jun 3, 2022ยท4 min read
davipon.hashnode.devBetter Backend DX: JSON Schema + TypeScript + Swagger = โจ Vol. 2๐ Hi! I'm David Peng. You can find me on Twitter: @davipon. This post is Vol. 2 of the Better Backend DX: JSON Schema + TypeScript + Swagger = โจ, and I'll cover following topics by building a simple Fastify CRUD Posts API: Improve code readability ...May 20, 2022ยท10 min read