notemdpro-test-driven-development
Installation
SKILL.md
NoteMD Pro - Testing & Regression Defense
Overview
The obsidian-NoteMD_new source project contains a robust suite of 35 Jest unit tests located in the src/tests/ directory. When acting as an AI Agent modifying core utilities, heuristic engines, or batch processors within this skill set, you MUST engage this testing framework to prevent regressions.
🛡️ The Prime Directive
[!CAUTION] Mandatory Regression Testing If you modify
fileUtils.ts,mermaidProcessor.ts,formulaFixer.ts, or any other core utility, you are required to run the local test suite and ensure all 35 mocked tests pass. Do not present a "completed" refactor to the user without terminal proof thatnpm testsucceeded.
Test Suite Structure
The tests are located in src/tests/ and use Obsidian-specific mocks (src/__mocks__/):