From b6e293d05951f612e1a40a7a1c90261bc35fb91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Sat, 21 Mar 2026 23:07:46 -0500 Subject: [PATCH] fix(baoyu-markdown-to-html): use process.execPath and tsx import in test runner --- skills/baoyu-markdown-to-html/scripts/main.test.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/skills/baoyu-markdown-to-html/scripts/main.test.ts b/skills/baoyu-markdown-to-html/scripts/main.test.ts index e5286f0..e40b0f2 100644 --- a/skills/baoyu-markdown-to-html/scripts/main.test.ts +++ b/skills/baoyu-markdown-to-html/scripts/main.test.ts @@ -3,6 +3,7 @@ import { execFile } from "node:child_process"; import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; +import process from "node:process"; import test from "node:test"; import { fileURLToPath } from "node:url"; import { promisify } from "node:util"; @@ -21,8 +22,10 @@ test("CLI forwards wrapper title and vendor render options", async () => { await fs.writeFile(markdownPath, "## Section\n\nParagraph with **bold** text.\n", "utf-8"); const { stdout } = await execFileAsync( - "bun", + process.execPath, [ + "--import", + "tsx", SCRIPT_PATH, markdownPath, "--theme", "grace",