Test Maintenance Workflow
Apply these rules for this repository:
- •Treat test updates as part of the same change as production code updates.
- •For behavior changes, add or update at least one test that would fail before the code change and pass after it.
- •Keep tests close to the service they validate:
api/testsfor API tests andweb/**/*.test.jsx(orweb/**/*.test.js) for web tests. - •Prefer stable assertions against behavior and outputs, not implementation details.
- •Run relevant checks before handoff and report what was executed.
Command Guidance
- •API test command:
make test-api - •Web test command:
make test-web - •Full test command:
make test
Required Validation
- •After API changes:
make lint-api,make typecheck-api, andmake test-api - •After web changes:
make lint-web,make typecheck-web, andmake test-web - •After touching both services:
make lint,make typecheck, andmake test