test: 修复场景资源测试在 Windows 下的路径解析

This commit is contained in:
星闌 committed 2026-10-12 20:24:31 +08:00
1 parent cf7a940027
commit 7db277b327
1 file changed
+2 -1
+2 -1
View File
@@ -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 });