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