Fixing React Testing Library 'test was not wrapped in act' warning
When writing tests with React Testing Library, developers often run into the 'React state updates should be wrapped into act' warning.
Read the article about Fixing React Testing Library 'test was not wrapped in act' warning
Testing React Component Error Boundaries
I've been working with error boundaries in React. Here's how to effectively test thrown errors by components wrapped in an error boundary using Vitest and React Testing Library.
Read the article about Testing React Component Error Boundaries
I was recently writing unit tests for a project and I wanted to test whether a function in one class had been called by a parent class. Sounds simple right? I found it a bit trickier than anticipated so wanted to share my learnings.
Getting started with Sapper and Svelte
Read the article about Getting started with Sapper and Svelte
Building a REST API from Google Sheets with AWS Lambda and API Gateway
I came across a community group who had been managing a Google sheet to detail data about which local businesses are delivering during the Coronavirus crisis. I used this sheet as a backend for an API I built using Lambda and API Gateway.
Read the article about Building a REST API from Google Sheets with AWS Lambda and API Gateway
Static and serverless with Vue.js, Nuxt.js, Vuex, Contentful, Netlify
I'm a big fan of Vue.js and Vuex for state management. Combine this with Nuxt and you can generate a static version of your Vue application and give your users a speedy site served from HTML files. I cover this and how you might approach making the content of your static site dynamic using Netlify webhooks and Contentful as a CMS.
Read the article about Static and serverless with Vue.js, Nuxt.js, Vuex, Contentful, Netlify
Working with the Payment Request API
One of things that irks me about the usability of shopping online is the inconsistent checkout experience between different merchants. Do I really need to enter the same delivery/billing address, card number, CVC code etc. into every websites specific form? Payment Request API to the rescue.
Improving Accessibility On Your Web Application
Advancing my knowledge around the topic of accessibility has been something I've been doing a lot recently. With this knowledge came the realisation that previous web applications I'd worked on could do with some improvements in this field. There are a few quick wins which could fundamentally improve the accessibility of your web application post-build.
Read the article about Improving Accessibility On Your Web Application