Tag: node.js

  • Creating Modular Mocks for the Obsidian API in Jest

    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

    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.…