musubi-sdd 5.9.1 → 5.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "musubi-sdd",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.2",
|
|
4
4
|
"description": "Ultimate Specification Driven Development Tool with 27 Agents for 7 AI Coding Platforms + MCP Integration (Claude Code, GitHub Copilot, Cursor, Gemini CLI, Windsurf, Codex, Qwen Code)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -163,10 +163,17 @@ class ConstitutionalValidator {
|
|
|
163
163
|
.filter(f => fs.statSync(path.join(libPath, f)).isDirectory());
|
|
164
164
|
|
|
165
165
|
for (const lib of subDirs) {
|
|
166
|
-
|
|
167
|
-
const
|
|
166
|
+
// Check multiple possible test directory names
|
|
167
|
+
const testDirs = ['tests', 'test', '__tests__'];
|
|
168
|
+
const hasTestDir = testDirs.some(dir =>
|
|
169
|
+
fs.existsSync(path.join(libPath, lib, dir))
|
|
170
|
+
);
|
|
171
|
+
|
|
172
|
+
// Check for test files in the library root or test subdirectories
|
|
173
|
+
const testFile = glob.sync(path.join(libPath, lib, '**/*.test.{js,ts}'));
|
|
174
|
+
const specFile = glob.sync(path.join(libPath, lib, '**/*.spec.{js,ts}'));
|
|
168
175
|
|
|
169
|
-
if (!
|
|
176
|
+
if (!hasTestDir && testFile.length === 0 && specFile.length === 0) {
|
|
170
177
|
this._recordFinding(
|
|
171
178
|
articleId,
|
|
172
179
|
articleName,
|