-
My current take when publishing packages to the npm registry
23 August 2023 —
Comments I have always struggled with how packages are versioned and published to the npm registry. My main concern is that you probably want to also add a git tag to your source code when you are releasing a new version, but npm packages have their own versioning system, and include a "version" field in the…
-
My experience migrating to Redux Toolkit (RTK)
17 December 2022 —
Comments A couple of weeks ago I migrated a React project using redux to Redux Toolkit. Redux has always been my preferred state management tool for React (which doesn't mean I "love" it), but one of its main problems is the amount of boilerplate code it requires. Because of that I had a couple of helper fun…
-
How to reduce duplication in your GitHub Actions workflows
19 August 2022 —
Comments In 2019, GitHub published their own solution to run automated workflows called GitHub Actions, which allowed those hosting their code in GitHub, to be able to define and run their CI/CD pipelines in the same platform. When it was released, one of the main pain points to use it was that defining pipe…
-
My experience migrating from enzyme to react testing library
13 May 2022 —
Comments Recently ReactJS v18 was released. I started to look into its improvements, and checked which of my projects could benefit from them. The main react-based project I maintain at the moment of writing this article is shlink-web-client, so I naturally created a new branch and started the process. The u…
-
Capturing remote code coverage in API tests with PHPUnit
12 February 2022 —
Comments You can find an improved version of what's described here in Capturing remote code coverage in E2E tests with PHPUnit Capturing code coverage for a test suite is a very useful way to know which parts of your source code are actually getting executed by tests. This is useful not only to know if you…