diff --git a/cli/flags.rs b/cli/flags.rs index 15902a3c2e..075a29b5d4 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -1030,7 +1030,7 @@ report results to standard output: deno test src/fetch_test.ts src/signal_test.ts Directory arguments are expanded to all contained files matching the glob -{*_,}test.{js,ts,jsx,tsx}: +{*_,*.,}test.{js,ts,jsx,tsx}: deno test src/", ) } diff --git a/docs/testing.md b/docs/testing.md index d6f59e3ec3..5448f6d582 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -100,6 +100,6 @@ deno test my_test.ts ``` You can also omit the file name, in which case all tests in the current -directory (recursively) that match the glob `{*_,}test.{js,ts,jsx,tsx}` will be -run. If you pass a directory, all files in the directory that match this glob +directory (recursively) that match the glob `{*_,*.,}test.{js,ts,jsx,tsx}` will +be run. If you pass a directory, all files in the directory that match this glob will be run.