summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaple Miao <522856232@qq.com>2020-05-21 13:02:32 +0800
committerGitHub <noreply@github.com>2020-05-21 01:02:32 -0400
commit9fdc6dc435b4282a0f222ae9308ab12dfde6d97e (patch)
tree363a17872fd220ad901fec17e6267ea6a99c5d89
parent11e3d70c851b0ae9f8c022810be00a26afa08d30 (diff)
docs: fix test glob pattern (#5661)
-rw-r--r--cli/flags.rs2
-rw-r--r--docs/testing.md4
2 files changed, 3 insertions, 3 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index 15902a3c2..075a29b5d 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 d6f59e3ec..5448f6d58 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.