Skip to content

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

test: expose remote path publication failures

sunsunsun039c62a0c50a
diff --git a/archify/test/webm-artifact.smoke.mjs b/archify/test/webm-artifact.smoke.mjs
index 8b96b22a..aa22ed5f 100644
--- a/archify/test/webm-artifact.smoke.mjs
+++ b/archify/test/webm-artifact.smoke.mjs
@@ -101,7 +101,7 @@ const legendOutputs = {
dataflow: renderLegendFixture('dataflow', 'issue-52-default-flow', {
schema_version: 1,
diagram_type: 'dataflow',
- meta: { title: 'Default Flow With Store' },
+ meta: { title: 'Default Flow With Store', output: 'issue-52-default-flow.dataflow.html' },
stages: [{ label: 'Input' }, { label: 'Output' }],
nodes: [
{ id: 'input', type: 'backend', label: 'Input', stage: 0, row: 0 },
@@ -112,7 +112,11 @@ const legendOutputs = {
lifecycle: renderLegendFixture('lifecycle', 'issue-52-no-waiting', {
schema_version: 1,
diagram_type: 'lifecycle',
- meta: { title: 'No Waiting or Failure', viewBox: [720, 566] },
+ meta: {
+ title: 'No Waiting or Failure',
+ output: 'issue-52-no-waiting.lifecycle.html',
+ viewBox: [720, 566],
+ },
lanes: [{ id: 'main', label: 'Lifecycle' }],
states: [
{ id: 'started', type: 'start', label: 'Started', lane: 'main', col: 0 },
@@ -126,6 +130,7 @@ const legendOutputs = {
diagram_type: 'architecture',
meta: {
title: 'Custom Legend Label',
+ output: 'issue-52-custom-label.architecture.html',
viewBox: [720, 420],
legend: {
entries: {
@@ -144,7 +149,11 @@ const legendOutputs = {
hidden: renderLegendFixture('dataflow', 'issue-52-hidden', {
schema_version: 1,
diagram_type: 'dataflow',
- meta: { title: 'Hidden Legend', legend: { mode: 'hidden', entries: { database: { visible: true } } } },
+ meta: {
+ title: 'Hidden Legend',
+ output: 'issue-52-hidden.dataflow.html',
+ legend: { mode: 'hidden', entries: { database: { visible: true } } },
+ },
stages: [{ label: 'Input' }, { label: 'Output' }],
nodes: [
{ id: 'input', type: 'backend', label: 'Input', stage: 0, row: 0 },
@@ -188,6 +197,7 @@ const specialRouteSource = {
meta: {
title: '多语言 Route Share Card 🚀 with a deliberately long original diagram title that must fit safely',
subtitle: 'Ten exact authored hops',
+ output: 'special-route.architecture.html',
animation: 'trace',
},
components: specialComponents,
diff --git a/scripts/run-windows-path-tests.mjs b/scripts/run-windows-path-tests.mjs
index ca0c1b72..862e6e34 100644
--- a/scripts/run-windows-path-tests.mjs
+++ b/scripts/run-windows-path-tests.mjs
@@ -30,6 +30,7 @@ function runCli(args, { timeout = 120_000 } = {}) {
return spawnSync(process.execPath, [cli, ...args], {
cwd: skillRoot,
encoding: 'utf8',
+ env: { ...process.env, ARCHIFY_DIAGNOSTIC_FORMAT: 'json' },
timeout,
});
}