test(leadsquared): make ApiError specs reload-safe (#13098)

- fix the flaky lead-squared spec
This commit is contained in:
Sojan Jose
2025-12-17 13:30:34 -08:00
committed by GitHub
parent ca5e112a8c
commit 7314c279ee
2 changed files with 16 additions and 4 deletions

View File

@@ -47,8 +47,14 @@
- Avoid writing specs unless explicitly asked
- Remove dead/unreachable/unused code
- Dont write multiple versions or backups for the same logic — pick the best approach and implement it
- Don't reference Claude in commit messages
- Prefer `with_modified_env` (from spec helpers) over stubbing `ENV` directly in specs
- Specs in parallel/reloading environments: prefer comparing `error.class.name` over constant class equality when asserting raised errors
## Commit Messages
- Prefer Conventional Commits: `type(scope): subject` (scope optional)
- Example: `feat(auth): add user authentication`
- Don't reference Claude in commit messages
## Project-Specific