agentleFS
vualvual/lobe-chat-pro/.cursor/rules/testing-guide/db-model-test.mdc

lobe-chat-pro / testing-guide

Cursor rule302 starsChanged 10 months agoLicence not identifiedView on GitHub

测试 packages/database 下的数据库 Model 层。 数据库 Model 层通过环境变量控制数据库类型,在两种测试环境下有不同的数据库后端:客户端环境 (PGLite) 和 服务端环境 (PostgreSQL) 对于所有 Model 测试,必须在两个环境下都验证通过: 创建新 Model 测试前,必须先参考现有的实现模式: 这是最关键的安全要求。所有涉及用户数据的操作都必须包含用户权限检查: ❌ 错误示例 - 存在安全漏洞: ✅ 正确示例 - 安全的实现: 必须进行用户权限检查的方法: 必须测试的安全场景 🔒:

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.