Dashboard › craft › Distillation
71a3fab5-3e2a-481c-b202-3b2404df6569["lore_tm_v1__rFnEN3TjY_mnMf7vMD2itgtoMWUGJ_CyGx98hwiZXE"]
Date: Sep 8, 2026
packages/cli/test/lib/scan/ignore.property.test.ts:1-125: Property suite uses fast-check, Vitest, and isolated filesystem directories under ROOT = mkdtempSync(join(tmpdir(), "scan-ignore-prop-")), removed in afterAll() via rmSync(ROOT, { recursive: true, force: true }).ignore.property.test.ts:34-63: segmentArb generates 1–10-character path segments from abcdefghijklmnopqrstuvwxyz0123456789_-; relPathArb joins 1–4 such segments with /. patternArb selects from "*.log", "*.tmp", "build", "dist/", "node_modules", "*.bak", "src/**/*.generated.ts", "coverage", and ".env"; the restricted alphabets avoid ignore package-special whitespace, leading ./!, glob metacharacters, path separators, \, [, and {.ignore.property.test.ts:65-99: Property test "isIgnored matches \ignore` for root-only patterns"generates 0–6patternArbvalues and onerelPathArbpath. It writes patterns as a root.gitignorewhen nonempty, constructsIgnoreStack.create({ cwd, alwaysSkipDirs: [] }), then requires stack.isIgnored(relPath, false)to equalignore().add(patterns).ignores(relPath). Each run deletes its rt-temp directory infinally; runs are capped at Math.min(DEFAULT_NUM_RUNS, 25)` because every run writes filesystem state.alwaysSkipDirs always ignore their basename.ignore.property.test.ts:101-125: Property test "skipped-dir basenames are always ignored" selects skipDir from "node_modules", "dist", ".git", and "venv", generates a trailing relative path, queries ${skipDir}/${trailing}, and requires IgnoreStack.create({ cwd, alwaysSkipDirs: [skipDir] }).isIgnored(rel, false) to be true. It uses isolated skip- temporary directories, cleans each in finally, and runs Math.min(DEFAULT_NUM_RUNS, 25) cases.