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(sequence): support Node 18 path resolution
Oleksandr Mekhovovb85660f0d610
diff --git a/archify/test/sequence-header-clearance.test.mjs b/archify/test/sequence-header-clearance.test.mjsindex f1ee6f2a..929db52a 100644--- a/archify/test/sequence-header-clearance.test.mjs+++ b/archify/test/sequence-header-clearance.test.mjs@@ -4,10 +4,12 @@ import fs from 'node:fs';import os from 'node:os';import path from 'node:path';import {spawnSync} from 'node:child_process';-import {pathToFileURL} from 'node:url';+import {fileURLToPath,pathToFileURL} from 'node:url';import {ChromeVisualBrowser,findChrome} from '../bin/visual-check.mjs';import {fittedNodeFontSize} from '../renderers/shared/text-fit.mjs';+const testDir=path.dirname(fileURLToPath(import.meta.url));+// Public synthetic labels deliberately exercise a maximum-width participant.// This fixture carries no application-specific source or private repository.test('sequence headers reserve an icon/brand rail without shrinking or changing literal labels', async t=>{@@ -21,7 +23,7 @@ test('sequence headers reserve an icon/brand rail without shrinking or changing],messages:[{id:'request',from:'transfer',to:'without-context',y:200,label:'Exact request'},{id:'reply',from:'without-context',to:'transfer',y:250,label:'Exact reply',variant:'return'}]};const input=path.join(dir,'input.json'),output=path.join(dir,'output.html');fs.writeFileSync(input,JSON.stringify(spec));- const rendered=spawnSync(process.execPath,[path.resolve(import.meta.dirname,'../bin/archify.mjs'),'deliver','sequence',input,output,'--quality','standard','--json'],{encoding:'utf8',maxBuffer:16*1024*1024});+ const rendered=spawnSync(process.execPath,[path.resolve(testDir,'../bin/archify.mjs'),'deliver','sequence',input,output,'--quality','standard','--json'],{encoding:'utf8',maxBuffer:16*1024*1024});assert.equal(rendered.status,0,rendered.stderr||rendered.stdout);const browser=new ChromeVisualBrowser(chrome);try{