Building a VS Code Extension for Gutenberg blocks
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
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
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
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
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...
Using GitHub Dependabot with a Monorepo
GitHub offers a dependabot service that can let you know of any potential security issues with your dependencies and automatically create a Pull Request for you. This works great without...