Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
test: bound suite concurrency for stability
tt-a1i247caaabbdfa
diff --git a/archify/package.json b/archify/package.jsonindex 6d51c49a..b4842f0c 100644--- a/archify/package.json+++ b/archify/package.json@@ -19,7 +19,7 @@"build:start": "node ../scripts/build-start.mjs ../docs/start.html","build:readme-showcase": "node ../scripts/build-readme-showcase.mjs","test:webm": "node test/webm-artifact.smoke.mjs",- "test": "npm run check:validators && node test/golden.mjs && node --test test/*.test.mjs",+ "test": "npm run check:validators && node test/golden.mjs && node ../scripts/run-tests.mjs","render:examples": "node scripts/render-examples.mjs ../examples"},"devDependencies": {diff --git a/scripts/run-tests.mjs b/scripts/run-tests.mjsnew file mode 100644index 00000000..2587efbb--- /dev/null+++ b/scripts/run-tests.mjs@@ -0,0 +1,33 @@+#!/usr/bin/env node++import { spawnSync } from 'node:child_process';+import fs from 'node:fs';+import path from 'node:path';+import { fileURLToPath } from 'node:url';++const repoRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');+const skillRoot = path.join(repoRoot, 'archify');+const testRoot = path.join(skillRoot, 'test');+const testFiles = fs.readdirSync(testRoot)+ .filter((entry) => entry.endsWith('.test.mjs'))+ .sort()+ .map((entry) => path.join('test', entry));++const [major, minor] = process.versions.node.split('.').map(Number);+const supportsConcurrencyFlag = major > 18 || (major === 18 && minor >= 19);+const args = ['--test'];+if (supportsConcurrencyFlag) args.push('--test-concurrency=4');+args.push(...testFiles);++const result = spawnSync(process.execPath, args, {+ cwd: skillRoot,+ stdio: 'inherit',+});++if (result.error) throw result.error;+if (result.signal) {+ process.stderr.write(`test runner terminated by ${result.signal}\n`);+ process.exitCode = 1;+} else {+ process.exitCode = result.status ?? 1;+}