Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the example project's config file #5516

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions v-next/example-project/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ const exampleTaskOverride = task("example2")
.addVariadicArgument({
name: "testFiles",
description: "An optional list of files to test",
// defaultValue: [],
defaultValue: [],
})
.addOption({
.addFlag({
name: "noCompile",
description: "Don't compile before running this task",
})
Expand All @@ -43,6 +43,7 @@ const exampleTaskOverride = task("example2")
.addOption({
name: "grep",
description: "Only run tests matching the given string or regexp",
defaultValue: "",
})
.build();

Expand All @@ -52,7 +53,7 @@ const testTask = task("test", "Runs mocha tests")
description: "An optional list of files to test",
// defaultValue: [],
})
.addOption({
.addFlag({
name: "noCompile",
description: "Don't compile before running this task",
})
Expand All @@ -67,6 +68,7 @@ const testTask = task("test", "Runs mocha tests")
.addOption({
name: "grep",
description: "Only run tests matching the given string or regexp",
defaultValue: "",
})
.setAction(import.meta.resolve("./tasks/non-existing.ts"))
.build();
Expand Down
Loading