Tag: unit-testing
-
Mastering Unit Testing: Protecting Your Code from Hidden Risks with Red-Green-Refactor
Mastering unit testing is essential for preventing corporate risk in software development. Learn how to distinguish unit testing from integration and boundary testing, and implement the Red-Green-Refactor cycle to ensure code reliability and quality.
-
Creating Modular Mocks for the Obsidian API in Jest
Introduction Testing is crucial in software development, especially for the several custom plugins I’m building for Obsidian. I rely on Jest, a testing tool that incorporates Mocks, to simulate Obsidian’s API. This approach is key to making tests isolated and dependable. In this post, I’ll show you how to create a flexible and scalable mock…
-
Getting Started Unit Testing in Node.js with Jest
Unit testing is a crucial step in ensuring the reliability and functionality of your Node.js applications. Jest, a widely-used testing framework, makes it easy to write and run tests with minimal setup. In this post, I’ll walk you through setting up Jest for your Node.js project and show you how to write effective unit tests.…