Skip to content

Commit

Permalink
fix: fix the test helper for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kanej committed Feb 12, 2025
1 parent ef8cfb1 commit 23ccc26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import path from "node:path";
import { fileURLToPath } from "node:url";

describe("ignition helper mutual exclusivity", () => {
let originalCwd: string;
Expand All @@ -7,7 +8,7 @@ describe("ignition helper mutual exclusivity", () => {

process.chdir(
path.join(
path.dirname(new URL(import.meta.url).pathname),
path.dirname(fileURLToPath(import.meta.url)),
"./fixture-projects",
"with-fake-helper",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { HardhatRuntimeEnvironment } from "@ignored/hardhat-vnext/types/hre
import type { NetworkConnection } from "@ignored/hardhat-vnext/types/network";

import path from "node:path";
import { fileURLToPath } from "node:url";

import { createHardhatRuntimeEnvironment } from "@ignored/hardhat-vnext/hre";

Expand All @@ -21,7 +22,7 @@ export function useIgnitionProject(fixtureProjectName: string): void {

process.chdir(
path.join(
path.dirname(new URL(import.meta.url).pathname),
path.dirname(fileURLToPath(import.meta.url)),
"../fixture-projects",
fixtureProjectName,
),
Expand Down

0 comments on commit 23ccc26

Please sign in to comment.