summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorMarvin Hagemeister <marvin@deno.com>2024-07-08 15:19:59 +0200
committerGitHub <noreply@github.com>2024-07-08 15:19:59 +0200
commit1e97f0f1487d27b69d85ebe8e9d84c21af1d9dde (patch)
treee8a53b37692f67e0c8570fe29f172ae401a057ba /cli/args/flags.rs
parent74ac29bae666cd910c6f66d47b20e3209afc1fe7 (diff)
feat: add `__tests__` to test file detection defaults (#24443)
The `jest` test runner popularized putting tests into a `__tests__` folder. Whilst many have switched to going with a `.test` suffix in the file name these days, there are still many jest projects that have `__tests__`. By adding this to the default test detection logic it makes `deno test` discover those out of the box.
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index 710dbc0a6..b68b4aadb 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -2591,7 +2591,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,mjs,ts,mts,jsx,tsx}:
+{*_,*.,}test.{js,mjs,ts,mts,jsx,tsx} or **/__tests__/**:
deno test src/",
)