Skip to content

Commit cbc88d2

Browse files
authored
Merge pull request #5516 from NomicFoundation/fix-example-project
Fix the example project's config file
2 parents 05a1a52 + 3b1afef commit cbc88d2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

v-next/example-project/hardhat.config.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ const exampleTaskOverride = task("example2")
2626
.addVariadicArgument({
2727
name: "testFiles",
2828
description: "An optional list of files to test",
29-
// defaultValue: [],
29+
defaultValue: [],
3030
})
31-
.addOption({
31+
.addFlag({
3232
name: "noCompile",
3333
description: "Don't compile before running this task",
3434
})
@@ -43,6 +43,7 @@ const exampleTaskOverride = task("example2")
4343
.addOption({
4444
name: "grep",
4545
description: "Only run tests matching the given string or regexp",
46+
defaultValue: "",
4647
})
4748
.build();
4849

@@ -52,7 +53,7 @@ const testTask = task("test", "Runs mocha tests")
5253
description: "An optional list of files to test",
5354
// defaultValue: [],
5455
})
55-
.addOption({
56+
.addFlag({
5657
name: "noCompile",
5758
description: "Don't compile before running this task",
5859
})
@@ -67,6 +68,7 @@ const testTask = task("test", "Runs mocha tests")
6768
.addOption({
6869
name: "grep",
6970
description: "Only run tests matching the given string or regexp",
71+
defaultValue: "",
7072
})
7173
.setAction(import.meta.resolve("./tasks/non-existing.ts"))
7274
.build();

0 commit comments

Comments
 (0)