From 1e97f0f1487d27b69d85ebe8e9d84c21af1d9dde Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Mon, 8 Jul 2024 15:19:59 +0200 Subject: 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. --- cli/args/flags.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/args') 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/", ) -- cgit v1.2.3