Heya!

I’m Kisho πŸ‘‹πŸ½. I'm a JavaScript developer and this blog is where I learn in public πŸ‘¨πŸ½β€πŸ’». If you want to know more about me, click here πŸš€. If you’re here for the blogposts, scroll to your topic of choice πŸ‘‡πŸ½

You can choose to read the latest from the 7 key sections below

Alternatively, you can also visit the blog πŸ“– or search πŸ” page

# testing

How to increase the resilience of test expectations by tapping into the test data

Sun Apr 30 2023

How to increase the resilience of test expectations by tapping into the test data

A quick way to increase the resilience of test expectations when the test data keeps changing

image

Sun Jan 22 2023

[SOLVED] React Testing Library snapshots failing due to dynamically generated IDs

A solution to prevent RTL snapshots from failing every time your tests run due to dynamically generated IDs

image

Fri Jan 20 2023

Partial matching objects, nested objects, arrays and nested objects in arrays using Jest

A guide into how to use jest matchers to do partial matching for data inside objects and arrays (even when nested)

# typescript

The difference between any and unknown in Typescript

Sun Apr 30 2023

The difference between any and unknown in Typescript

A quick expalantion of why and where we would use unknown instead of any

Element implicitly has an 'any' type because expression of type x can't be used to index type

Fri Apr 14 2023

Element implicitly has an 'any' type because expression of type x can't be used to index type

How to resolve the "Element implicitly has an 'any' type because expression of type x can't be used to index type" warning

image

Sat Jan 28 2023

How to convert TypeScript Enum to a Union Type

An explanation of 2 easy ways to convert a TypeScript Enum to a Union Type

# front-end

Uncaught Error: A state mutation was detected between dispatches, in the path x. This may cause incorrect behavior

Fri Apr 14 2023

[SOLVED] React-Redux Uncaught Error: A state mutation was detected between dispatches

How to solve the "Uncaught Error: A state mutation was detected between dispatches" thrown by redux

image

Sat Jan 21 2023

Passing fresh props to a throttled event handler through Redux

A solution to a recent issue I had where I was unable to pass updated props to a throttle onScroll event handler

Add a subheading

Sat Jul 30 2022

How to fix "To load an ES module, set "type": "module" in the package.json" when installing next-sitemap

Solve this error encountered when running the next-sitemap in postbuild

# career

How to find the time to write blog posts as a developer

Mon Apr 10 2023

How to find the time to write blog posts as a developer

Writing is rewarding but finding the time for it isn't as easy. Here are my tips on how to find the time

14

Sun Dec 12 2021

How to land clients on UpWork (template for approaching clients included)

UpWork is a great source for landing good quality project to beef up your portfolio, if you do it right. Learn how I did it.

13

Sun Nov 21 2021

How to get experience to get experience as a self-taught developer

Some thoughts on how to break the cycle where you need experience to get experience as a self-taught developer

# CI/CD

How to get Pull requests (PRs) reviewed faster

Mon Apr 10 2023

How to get Pull requests (PRs) reviewed faster

A few tips that I learnt and now use everyday to have my PRs approved faster

# javascript

How to remove falsy elements/values from a JavaScript Array

Thu Jun 02 2022

How to remove falsy elements/values from a JavaScript Array

Here are some of the best ways to remove falsy values from a JavaScript array

Best way to group an array of objects by a key

Sun May 29 2022

Best way to group an array of objects by a key

A quick walkthrough on how to use the array reduce method to group objects in an array by any property value

blog post image

Sat May 28 2022

How to remove falsy property values from a JavaScript object

A quick snippet of code showcasing a function I created to remove falsy values from a JavaScript object

# tools

11

Sat Jul 31 2021

How to expose your development server to the Internet with ngrok

A quick guide on how to expose your development server to the internet

10

Thu Jan 07 2021

8 etiquette tips for using Slack

Here are my thoughts on how you can use Slack to get work done with irritating your colleagues and teaching them a few things too

9

Thu Jan 07 2021

Integrating Continuous Deployment to Gatsby

Learn how to intergrate Continuous Deployment to Gatsby projects using GitHub and Netlify to make pushing new features easier and faster