Git Worktree
With git worktree you can add a new working tree that is associated with the repository, along with additional metadata that differentiates that working tree from others in the same repository. The working tree, along with this metadata, is called a "worktree".
While working on multiple branches of a codebase I have come across multiple scenarios where sometimes I am building something and have to switch branches to fix a bug on priority and send it to production. git stash is one solution but it becomes messy if you have multiple changes stashed, maintaining node modules becomes a hassle if there are different ones on different branches, worktree makes all of this work like magic !
Terminal Sample
# Create a branch-2 dir with the branch-1 checked out
git worktree add ../branch-2 branch-1
# Then simply get to work
cd ../branch-2
git fetch && git reset --hard origin/branch-1
git checkout -b branch-2Now I can contribute to multiple branches easily and can simultaneously test out the branches without one branch impacting the other branch at all.
Keep reading

What fired my useEffect?
Developing in React brings its set of challenges, especially when dealing with side effects in functional components. React’s useEffect hook is a powerful tool but it can sometimes be a mystery figuring out which dependency change triggered a particular effect

Jest Spy on an Exported Function
The spyOn utility in Jest is incredibly versatile, enabling you to monitor, track, and even replace the behaviour of functions. However, applying this to a named export from a module can be a bit tricky due to the specific parameters required by spyOn
