Upgrading a Laravel Vapor app to PHP 8.2
Published: Dec 23, 2022
I recently updated a Laravel app running on Laravel Vapor to PHP 8.2. I was a bit nervous about the upgrade but it went smoothly for me. This article goes...
Building a VS Code Extension for Gutenberg blocks
Published: Nov 18, 2022
I have been tasked with building a new website using WordPress. The last time I used WordPress was a few years ago and involved using Advanced Custom Fields to build...
Using Pest to test Laravel Livewire validation rules
Published: Aug 12, 2022
Last year I wrote a post about testing Laravel Livewire validation rules with PHP Unit. This post uses the same techniques as that post, but shows how to transfer it...
Mocking window.location in Jest
Published: Jun 18, 2022
Recently I had to write some tests for a piece of JavaScript code that used window.location. This left me trying to figure out how to mock the window.location so that...
Considerations for Incremental Static Regeneration in Next.js
Published: May 18, 2022
Next.js offers a feature called Incremental Static Regeneration (ISR) that allows you to generate a static page when the page is first visited, rather than generating a static copy at...
Mocking axios in Jest tests with Typescript
Published: Mar 9, 2022
Recently I wanted to write a test for a React component that uses axios to retrieve information from an API. To do this I had to mock jest, but I...