Skip to content

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

feat(core): add RSpec spec/ to EXACT_DIR_NAMES

thejesh2321e2dd3c0ae1
diff --git a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
index 155ae654..244b04f8 100644
--- a/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
+++ b/understand-anything-plugin/packages/core/src/__tests__/ignore-generator.test.ts
@@ -168,6 +168,12 @@ describe("generateStarterIgnoreFile", () => {
const content = generateStarterIgnoreFile(testDir);
expect(content).toContain("# benches/");
});
+
+ it("suggests spec/ directories (RSpec convention)", () => {
+ mkdirSync(join(testDir, "spec"), { recursive: true });
+ const content = generateStarterIgnoreFile(testDir);
+ expect(content).toContain("# spec/");
+ });
});
describe("language-grouped test file patterns", () => {
diff --git a/understand-anything-plugin/packages/core/src/ignore-generator.ts b/understand-anything-plugin/packages/core/src/ignore-generator.ts
index 582826ac..5e500c80 100644
--- a/understand-anything-plugin/packages/core/src/ignore-generator.ts
+++ b/understand-anything-plugin/packages/core/src/ignore-generator.ts
@@ -35,6 +35,7 @@ const EXACT_DIR_NAMES = [
"benchmark",
"benchmarks",
"benches",
+ "spec",
];
// Directory-name suffixes matched case-insensitively via String.endsWith.