Ollie Kennedyolliekennedy.hashnode.devยทJun 2, 2023Enhancing Object Matching in Kotlin Component Tests: From Simple Assertions to Hamcrest MatchersI was writing a component test in Kotlin for a scenario where we publish an event to a Kafka topic whenever we receive a request from an upstream system. It offered a good opportunity to learn how to write a custom matcher for comparing two different...4 likesKotlin
Blossomblossom.hashnode.devยทFeb 1, 2023UI Testing: Unit vs Component testWhen it comes to testing your frontend applications; there are many testing methodologies: unit testing, component testing, integration and end-to-end test. This article focuses on unit and component testing as they are commonly used interchangeably ...15 likesยท355 readsfrontend conceptsreact testing
Canopascanopas.hashnode.devยทFeb 1, 2023How to test Vue 3 components with Jest?Testing is crucial to ensure that our code is working as expected and maintaining the stability of the application. When working with Vue.js or any other js framework, Jest is an excellent choice for testing your components. In this blog post, we wil...71 readsVue.js
David Pengdavipon.hashnode.devยทSep 19, 2022Svelte 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...11 likesยท4.4K readsSvelteSvelte
David Pengdavipon.hashnode.devยทJul 27, 2022FeaturedTest 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...34 likesยท17.4K readsSvelteSvelte