Skip to content

Commit 43cd2c0

Browse files
Update commands.test.ts
1 parent 1853972 commit 43cd2c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/commands.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,6 @@ describe("publish", () => {
752752
// Windows doesn't support #!/usr/bin/env
753753
if (process.platform !== "win32") {
754754
it("use deno binary from DENO_BIN_PATH when set", async () => {
755-
const __dirname = path.dirname(new URL(import.meta.url).pathname);
756-
757755
await runInTempDir(async (dir) => {
758756
await writeTextFile(
759757
path.join(dir, "mod.ts"),
@@ -770,7 +768,7 @@ describe("publish", () => {
770768
});
771769

772770
await runJsr(["publish", "--dry-run", "--non-existant-option"], dir, {
773-
DENO_BIN_PATH: path.join(__dirname, "fixtures", "dummy.js"),
771+
DENO_BIN_PATH: path.join(import.meta.dirname, "fixtures", "dummy.js"),
774772
});
775773
});
776774
});

0 commit comments

Comments
 (0)