dsh-protect-tests:在應用前攔截削弱測試的智能體編輯
在 DSH 中讓智能體修測試時,常見手段包括 skip、刪斷言或換成 toBeDefined 等弱斷言。dsh-protect-tests 在編輯落地前對比測試文件新舊內容,識別削弱檢查強度的變更並拒絕或按配置審批;支持多框架 skip 語法、刪文件與 package.json test 腳本監視,可配置 testFiles 與 mode。安裝命令爲 dsh plugin --profile web add dsh-protect-tests,MIT 協議,維護者 acus9345。
閱讀全文