Skip to content

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

test: load workflow migration preload via a file URL

chihao.ou16ef0cd3e6c4
diff --git a/archify/test/workflow-migration.test.mjs b/archify/test/workflow-migration.test.mjs
index 5ac01096..13bb4d27 100644
--- a/archify/test/workflow-migration.test.mjs
+++ b/archify/test/workflow-migration.test.mjs
@@ -5,7 +5,7 @@ import { createHash } from 'node:crypto';
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
-import { fileURLToPath } from 'node:url';
+import { fileURLToPath, pathToFileURL } from 'node:url';
import {
createHorizontalRankMapper,
migrateWorkflowDocument,
@@ -33,7 +33,7 @@ function sha256(value) {
function runMigration(source, destination, { importModule, env } = {}) {
return spawnSync(process.execPath, [
- ...(importModule ? ['--import', importModule] : []),
+ ...(importModule ? ['--import', pathToFileURL(importModule).href] : []),
cli,
'migrate',
'workflow',