From 9fdc6dc435b4282a0f222ae9308ab12dfde6d97e Mon Sep 17 00:00:00 2001 From: Maple Miao <522856232@qq.com> Date: Thu, 21 May 2020 13:02:32 +0800 Subject: docs: fix test glob pattern (#5661) --- cli/flags.rs | 2 +- docs/testing.md | 4 ++-- 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. -- cgit v1.2.3