Skip to content

Commit

Permalink
Use fileURLToPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw committed Feb 1, 2024
1 parent adf2f4a commit 2e5b770
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js-api-spec/node-package-importer.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import {
import {sandbox} from './sandbox';
import {spy} from './utils';

import {fileURLToPath} from 'url';

const testPackageImporter = ({
input,
output,
Expand Down Expand Up @@ -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(
() => {
Expand Down

0 comments on commit 2e5b770

Please sign in to comment.