Skip to content

Commit

Permalink
fix for test
Browse files Browse the repository at this point in the history
  • Loading branch information
calvinrp committed Nov 3, 2024
1 parent 34e0f49 commit 3506f08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export async function cliTest(_fixtures) {
`${outDir}/package.json`,
JSON.stringify({ type: "module" })
);
const m = await import(`${outDir}/${name}.js`);
const m = await import(`${pathToFileURL(outDir)}/${name}.js`);
const inst = await m.instantiate(
undefined,
{
Expand Down Expand Up @@ -184,7 +184,7 @@ export async function cliTest(_fixtures) {
`${outDir}/package.json`,
JSON.stringify({ type: "module" })
);
const m = await import(`${outDir}/${name}.js`);
const m = await import(`${pathToFileURL(outDir)}/${name}.js`);
const inst = await m.instantiate(
undefined,
{
Expand Down

0 comments on commit 3506f08

Please sign in to comment.