From 47f6bee75f50ab0dd2108eccc73de4f3db9aed9c Mon Sep 17 00:00:00 2001 From: Michael Wolf Date: Sat, 10 Jan 2026 13:55:42 -0600 Subject: [PATCH] Improve test command to find spec/test files recursively Use globstar for recursive matching and support both *.spec.ts and *.test.ts patterns in any subdirectory. Co-Authored-By: Claude Opus 4.5 --- framework/cmd.d/test | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/framework/cmd.d/test b/framework/cmd.d/test index eb2c630..5196eea 100755 --- a/framework/cmd.d/test +++ b/framework/cmd.d/test @@ -2,6 +2,14 @@ set -eu +shopt -s globstar nullglob + DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -"$DIR"/../shims/pnpm tsx --test "$@" +cd "$DIR/../../express" + +if [ $# -eq 0 ]; then + "$DIR"/../shims/pnpm tsx --test ./**/*.spec.ts ./**/*.test.ts +else + "$DIR"/../shims/pnpm tsx --test "$@" +fi