Skip to content

Commit ef5961d

Browse files
committed
node test runner plugin
1 parent 03f04a2 commit ef5961d

File tree

21 files changed

+338
-48
lines changed

21 files changed

+338
-48
lines changed

pnpm-lock.yaml

+80-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v-next/core/src/internal/hre.ts

+1
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ async function resolveUserConfig(
179179
root: projectRoot,
180180
cache: config.paths?.cache ?? "", // TODO: resolve cache path
181181
artifacts: config.paths?.artifacts ?? "", // TODO: resolve artifacts path
182+
tests: config.paths?.tests ?? "test", // TODO: resolve tests path
182183
},
183184
};
184185

v-next/core/src/types/config.ts

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface ProjectPathsUserConfig {
5656
root?: string;
5757
cache?: string;
5858
artifacts?: string;
59+
tests?: string;
5960
}
6061

6162
/**
@@ -69,4 +70,5 @@ export interface ProjectPathsConfig {
6970
root: string;
7071
cache: string;
7172
artifacts: string;
73+
tests: string;
7274
}

v-next/core/test/internal/configuration-variables/configuration-variables.ts

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe("ResolvedConfigurationVariable", () => {
2828
root: projectRoot,
2929
cache: "",
3030
artifacts: "",
31+
tests: "",
3132
},
3233
},
3334
hooks: hookManager,

v-next/core/test/internal/hook-manager.ts

+14
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ describe("HookManager", () => {
105105
root: projectRoot,
106106
cache: "",
107107
artifacts: "",
108+
tests: "",
108109
},
109110
},
110111
hooks: hookManager,
@@ -175,6 +176,7 @@ describe("HookManager", () => {
175176
root: projectRoot,
176177
cache: "",
177178
artifacts: "",
179+
tests: "",
178180
},
179181
};
180182

@@ -230,6 +232,7 @@ describe("HookManager", () => {
230232
root: projectRoot,
231233
cache: "",
232234
artifacts: "",
235+
tests: "",
233236
},
234237
};
235238

@@ -335,6 +338,7 @@ describe("HookManager", () => {
335338
root: projectRoot,
336339
cache: "",
337340
artifacts: "",
341+
tests: "",
338342
},
339343
},
340344
hooks: hookManager,
@@ -355,6 +359,7 @@ describe("HookManager", () => {
355359
root: projectRoot,
356360
cache: "",
357361
artifacts: "",
362+
tests: "",
358363
},
359364
};
360365

@@ -441,6 +446,7 @@ describe("HookManager", () => {
441446
root: projectRoot,
442447
cache: "",
443448
artifacts: "",
449+
tests: "",
444450
},
445451
};
446452

@@ -564,6 +570,7 @@ describe("HookManager", () => {
564570
root: projectRoot,
565571
cache: "",
566572
artifacts: "",
573+
tests: "",
567574
},
568575
},
569576
hooks: hookManager,
@@ -658,6 +665,7 @@ describe("HookManager", () => {
658665
root: projectRoot,
659666
cache: "",
660667
artifacts: "",
668+
tests: "",
661669
},
662670
};
663671

@@ -702,6 +710,7 @@ describe("HookManager", () => {
702710
root: projectRoot,
703711
cache: "",
704712
artifacts: "",
713+
tests: "",
705714
},
706715
},
707716
hooks: hookManager,
@@ -720,6 +729,7 @@ describe("HookManager", () => {
720729
root: projectRoot,
721730
cache: "",
722731
artifacts: "",
732+
tests: "",
723733
},
724734
};
725735

@@ -740,6 +750,7 @@ describe("HookManager", () => {
740750
root: projectRoot,
741751
cache: "",
742752
artifacts: "",
753+
tests: "",
743754
},
744755
};
745756

@@ -825,6 +836,7 @@ describe("HookManager", () => {
825836
root: projectRoot,
826837
cache: "",
827838
artifacts: "",
839+
tests: "",
828840
},
829841
};
830842

@@ -869,6 +881,7 @@ describe("HookManager", () => {
869881
root: projectRoot,
870882
cache: "",
871883
artifacts: "",
884+
tests: "",
872885
},
873886
},
874887
hooks: hookManager,
@@ -1030,6 +1043,7 @@ function buildMockHardhatRuntimeEnvironment(
10301043
root: projectRoot,
10311044
cache: "",
10321045
artifacts: "",
1046+
tests: "",
10331047
},
10341048
},
10351049
tasks: mockTaskManager,

v-next/core/test/internal/user-interruptions/user-interruptions-manager.ts

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ describe("UserInterruptionManager", () => {
3232
root: projectRoot,
3333
cache: "",
3434
artifacts: "",
35+
tests: "",
3536
},
3637
},
3738
globalOptions: {},
@@ -78,6 +79,7 @@ describe("UserInterruptionManager", () => {
7879
root: projectRoot,
7980
cache: "",
8081
artifacts: "",
82+
tests: "",
8183
},
8284
},
8385
globalOptions: {},
@@ -126,6 +128,7 @@ describe("UserInterruptionManager", () => {
126128
root: projectRoot,
127129
cache: "",
128130
artifacts: "",
131+
tests: "",
129132
},
130133
},
131134
globalOptions: {},

0 commit comments

Comments
 (0)