Skip to content

Commit b6f2ff4

Browse files
fix: reorder module change check in TypeScript test automation script
1 parent 576c509 commit b6f2ff4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/ts_test_auto.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ if [[ -n "${ALL_CHANGED_FILES:-}" ]]; then
1818
echo ""
1919
fi
2020

21-
if [[ -z "${MODULE_CHANGED_FILES:-}" ]]; then
22-
echo "✓ No module files changed, skipping tests"
23-
exit 0
24-
fi
25-
2621
if [[ "${SHARED_CHANGED:-false}" == "true" ]]; then
2722
echo "==> Shared infrastructure changed"
2823
echo "==> Running all tests for safety"
2924
exec bun test
3025
fi
3126

27+
if [[ -z "${MODULE_CHANGED_FILES:-}" ]]; then
28+
echo "✓ No module files changed, skipping tests"
29+
exit 0
30+
fi
31+
3232
CHANGED_FILES=$(echo "$MODULE_CHANGED_FILES" | tr ' ' '\n')
3333

3434
MODULE_DIRS=()

0 commit comments

Comments
 (0)