Chetan Agrawal

Chetan Agrawal

Software Engineer. Technology hacker. Writing about JavaScript, software architecture, and building products.

Blog

Incremental Code Coverage checks with Jest

This article explores the importance of incremental code coverage checks using Jest and provides a step-by-step guide on how to run coverage reports for only the newly made changes in your codebase. With code snippets and examples, the article also explains how to define coverage thresholds and fail tests if the coverage falls below the specified threshold. By following these best practices, you can improve the quality and reliability of your code, speed up your test runs, and ensure that your code meets the same quality standards across your entire codebase.

Blog

Indian Companies with best dividend payouts and annual returns - March 2023

Explore the latest trends in dividend yield and return for leading Indian companies including Indian Oil Corporation Ltd, Steel Authority of India Ltd, REC Ltd, Power Finance Corporation Ltd, Coal India Ltd, Oil and Natural Gas Corporation Ltd, Power Grid Corporation of India Ltd, GAIL (India) Ltd, Hindustan Zinc Ltd, Oil India Ltd, SJVN Ltd, and Petronet LNG Ltd. This article provides a detailed analysis of these companies, their dividend payout ratios, and stock price performance, helping you make informed investment decisions.

Blog

Promises with postMessage API

Learn how to communicate between an iFrame and its parent window using postMessage API in JavaScript. This article provides examples of sending and receiving messages via Promises between an iFrame and its parent window, along code snippets used.

Gist

Telegram OpenClaw Agent Setup — Getting Agents to respond in Groups

Troubleshoot why a Telegram bot (OpenClaw agent) won't respond in group chats. Learn how Telegram Bot Privacy Mode blocks non-command messages, how to disable privacy via @BotFather, why you must remove and re-add the bot after changing privacy settings, and how to configure OpenClaw group allowlists, requireMention, and gateway logs for reliable group responses.

Gist

Multiple Git Accounts on single machine

How to use multiple GitHub accounts on one machine: configure separate SSH keys and ~/.ssh/config hosts, clone with custom hostnames, and set per-repo git http://user.name and http://user.email safely.

Gist

N8N Docker Quick Commands

n8n Docker quick commands cheat sheet: run n8n with persistent volumes, map local folders, and export/import workflows and credentials using docker exec for fast local automation setup.

Stay Updated

Get notified when I publish new articles and gists.