Tag: obsidian

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