Skip to content

Commit 5956f9a

Browse files
committed
allow node:test to resolve paths internally
1 parent 35463ad commit 5956f9a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

v-next/hardhat-node-test-runner/src/task-action.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import type { HardhatConfig } from "@ignored/hardhat-vnext/types/config";
22
import type { NewTaskActionFunction } from "@ignored/hardhat-vnext/types/tasks";
33

4-
import { resolve } from "node:path";
54
import { run } from "node:test";
65
import { fileURLToPath } from "node:url";
76

@@ -26,11 +25,7 @@ async function getTestFiles(
2625
config: HardhatConfig,
2726
): Promise<string[]> {
2827
if (testFiles.length !== 0) {
29-
const testFilesAbsolutePaths = testFiles.map((x) =>
30-
resolve(process.cwd(), x),
31-
);
32-
33-
return testFilesAbsolutePaths;
28+
return testFiles;
3429
}
3530

3631
return getAllFilesMatching(

0 commit comments

Comments
 (0)