Skip to content

Commit

Permalink
change wing test default entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
garysassano committed Sep 25, 2023
1 parent 1af56e0 commit d8f9817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/wing/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async function main() {
.description(
"Compiles a Wing program and runs all functions with the word 'test' or start with 'test:' in their resource identifiers"
)
.argument("[entrypoint...]", "all files to test, globs are supported", ["**/*.w"])
.argument("[entrypoint...]", "all files to test (globs are supported)", ["*.w"])
.addOption(
new Option("-t, --target <target>", "Target platform")
.choices(["tf-aws", "tf-azure", "tf-gcp", "sim", "awscdk"])
Expand Down
4 changes: 2 additions & 2 deletions apps/wing/src/commands/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export async function test(entrypoints: string[], options: TestOptions): Promise

if (expandedEntrypoints.length === 0) {
// Check if it's the default entrypoint
if (entrypoints[0] === "*.test.w") {
throw new Error("No '.test.w' files found in current directory.");
if (entrypoints[0] === "*.w") {
throw new Error("No '.w' files found in current directory.");
}
throw new Error("No matching files found in current directory.");
}
Expand Down

0 comments on commit d8f9817

Please sign in to comment.