Journey Through Code

Exploring different languages and frameworks, documenting my progress and discoveries, in chronological order.

Configuring Vite with TypeScript, Vitest, and React Testing Library

This guide provides a quick walkthrough on setting up a Vite project using the TypeScript template, along with configuring Vitest and React Testing Library for testing. It covers installation steps, configuration updates, and creating basic test files to ensure your React components work as expected with Vitest and Testing Library.

__dirname Makes a Comeback in Node.js ES Modules

This article walks you through my experience transitioning from CommonJS to ES Modules in Node.js, with a focus on the challenges of accessing the current module directory and file paths. It covers the frustrations I encountered with the old, cumbersome workaround and the relief brought by the introduction of import.meta.dirname and import.meta.filename. These improvements have significantly streamlined my coding process, and I am eager to share how they can simplify your JavaScript development as well.

Warp Terminal: Setting a Custom Starting Directory for New Sessions

Learn how to set your preferred directory as the default starting point for your terminal sessions in Warp. Follow these simple steps to configure your terminal to always open in your chosen directory, making your workflow more efficient and personalized.