From 2e5b770eb08b825766eb00d2164c0c5163c093d2 Mon Sep 17 00:00:00 2001 From: James Stuckey Weber Date: Thu, 1 Feb 2024 14:24:00 -0500 Subject: [PATCH] Use fileURLToPath --- js-api-spec/node-package-importer.node.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js-api-spec/node-package-importer.node.test.ts b/js-api-spec/node-package-importer.node.test.ts index 151d73dae..ac99bf15c 100644 --- a/js-api-spec/node-package-importer.node.test.ts +++ b/js-api-spec/node-package-importer.node.test.ts @@ -17,6 +17,8 @@ import { import {sandbox} from './sandbox'; import {spy} from './utils'; +import {fileURLToPath} from 'url'; + const testPackageImporter = ({ input, output, @@ -450,7 +452,7 @@ describe('Node Package Importer', () => { 'node_modules/bar-abs/index.scss': 'a {b: c}', 'node_modules/bar-abs/package.json': JSON.stringify({}), }); - const entryPoint = dir.url().pathname; + const entryPoint = fileURLToPath(dir.url()); console.log(`pkg:bar-abs entrypoint- ${entryPoint}`); return dir.chdir( () => {