From 7db277b3276289b6abd06ed4f172b86dd4480bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E9=97=8C?= Date: Mon, 12 Oct 2026 20:24:31 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=B5=8B=E8=AF=95=E5=9C=A8=20Windows=20?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=E8=B7=AF=E5=BE=84=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/scene-assets.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/scene-assets.test.js b/test/scene-assets.test.js index dd74a2e6..e5ffa88d 100644 --- a/test/scene-assets.test.js +++ b/test/scene-assets.test.js @@ -8,10 +8,11 @@ import assert from 'node:assert/strict'; import fs from 'node:fs'; import os from 'node:os'; import path from 'node:path'; +import { fileURLToPath } from 'node:url'; import { artPlan, formatSummary, isPlayerFile, isRefused } from '../tools/package.mjs'; import { localGaps, sceneInstallPlan } from '../tools/setup.mjs'; -const ROOT = path.resolve(path.dirname(new URL(import.meta.url).pathname), '..'); +const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..'); test('sceneInstallPlan: fetch only with a client and extractor deps; otherwise the metal board', () => { const present = sceneInstallPlan({ hasScenes: true, client: false });