diff --git a/express/tsconfig.json b/express/tsconfig.json index 3381805..a1cccc6 100644 --- a/express/tsconfig.json +++ b/express/tsconfig.json @@ -9,5 +9,6 @@ "strict": true, "types": ["node"], "outDir": "out" - } + }, + "exclude": ["**/*.spec.ts", "**/*.test.ts"] } diff --git a/framework/cmd.d/test b/framework/cmd.d/test index 5196eea..09a0b3a 100755 --- a/framework/cmd.d/test +++ b/framework/cmd.d/test @@ -2,14 +2,14 @@ set -eu -shopt -s globstar nullglob - DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" cd "$DIR/../../express" if [ $# -eq 0 ]; then - "$DIR"/../shims/pnpm tsx --test ./**/*.spec.ts ./**/*.test.ts + # Find all test files - use -print0/xargs to handle filenames safely + find . -type f \( -name '*.spec.ts' -o -name '*.test.ts' \) -print0 | \ + xargs -0 "$DIR"/../shims/pnpm tsx --test else "$DIR"/../shims/pnpm tsx --test "$@" fi