瀏覽代碼

test: test_frontend.sh hides console output of passing tests (vitest --silent=passed-only)

maziggy 1 天之前
父節點
當前提交
92c307786a
共有 1 個文件被更改,包括 2 次插入 和 1 次删除
  1. 2 1
      test_frontend.sh

+ 2 - 1
test_frontend.sh

@@ -22,7 +22,8 @@ knip_rc=$?
 cat /tmp/bambuddy-typecheck.$$ /tmp/bambuddy-lint.$$ /tmp/bambuddy-knip.$$
 rm -f /tmp/bambuddy-typecheck.$$ /tmp/bambuddy-lint.$$ /tmp/bambuddy-knip.$$
 
-npm run test:run
+# Console output of passing tests is hidden; a failing test still shows its own.
+npx vitest run --silent=passed-only && npm run check:i18n
 test_rc=$?
 
 # The production build and its browser baseline check, into a temporary