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 });