diff --git a/apps/wing/src/cli.ts b/apps/wing/src/cli.ts index 51a468f2129..c88b4a9d5dc 100644 --- a/apps/wing/src/cli.ts +++ b/apps/wing/src/cli.ts @@ -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 platform") .choices(["tf-aws", "tf-azure", "tf-gcp", "sim", "awscdk"]) diff --git a/apps/wing/src/commands/test.ts b/apps/wing/src/commands/test.ts index 544b16ea18c..a481d61ac06 100644 --- a/apps/wing/src/commands/test.ts +++ b/apps/wing/src/commands/test.ts @@ -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."); }