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。

阅读全文