Debugging Vitest JavaScript and TypeScript unit tests

Node.js has multiple unit testing frameworks, one of the most popular for web applications is Vitest. If a unit test fails, debugging is the best way to find the problem. To debug Vitest JavaScript and TypeScript unit tests in Visual Studio Code Set the breakpoint Open the JavaScript Debug Terminal Start the debugger When the …

Set up Easy Auth with Microsoft Azure Entra ID

The Microsoft Azure Entra ID provides federated authentication and authorization services for applications running in the Azure Cloud. Easy Auth enables application to use Single Sign On (SSO) services transparent to the user to detect the identity of the user of the application. To set up Easy Auth There are two ways to set up …

Debugging React Web Applications

React web applications run code at two places. Server side Client side As we can see, our application runs at two separate locations, so we need to debug them, at those places too. Debugging the server side code To debug the server side code, we can start the application in the Visual Studio Code Debugger …

Running MSSQL Server in a local Docker container

If the MSSQL Server is not needed all the time on the workstation, we can run it in a Docker container. It allows us to easily upgrade the server version and shut it down when it is not used. To set up MSSQL Server in a Docker container we will follow the steps in Nawaz …

Using Kiro Sandbox to run AI Agents and MCP servers in a secure environment

MCP servers provide standardized tools for AI agents to access providers and services, like GitHub, AWS, Azure. If MCP servers run unchecked on the workstation, those have full access to the filesystem. MCP Servers can cause catastrophic disasters, like deleting all files form the hard drive. Kiro provides a sandbox to securely run MCP Servers …

Using AgentCraft

Log into Claude CLI As AgentCraft uses your Claude Pro or Max subscription, first, you need to log into Claude CLI. Follow the instructions to authorize Claude CLI to use your Anthropic subscription and paste the token from the browser window into the CLI. Run AgentCraft The AgentCraft UI opens in your default web browser …

Installing AgentCraft

AgentCraft is an AI Orchestrator with Real Time Strategy Game user interface. It uses Claude Code CLI to access your Pro or Max Claude agent subscription. It does not need to know any tokens or credentials. To use AgentCraft, first, you need start Claude CLI and uses its infrastructure to connect to Claude Code. Install …

Cannot connect to local MSSQL Server from Node.js

The default MSSQL server installation only enables the Shared Memory network protocol for connection. Node.js can only connect using TCP/IP protocol. The error message is Failed to connect to localhost/…. Error: Failed to connect to localhost:1433 – Could not connect (sequence) Failed to connect to localhost:1433 – Could not connect (sequence) ConnectionError: Failed to connect …