# TODO 3 - Testing, quality metrics, and documentation

> **See also**: [8-TESTING-TODO.md](8-TESTING-TODO.md), [12-DOCUMENTATION-TODO.md](12-DOCUMENTATION-TODO.md), [18-ACCESSIBILITY-TODO.md](18-ACCESSIBILITY-TODO.md)

## Testing Expansion

- [ ] Expand unit/integration tests using `it.each` parameterized patterns
- [ ] Target >80% coverage per testing docs

## Documentation

- [ ] Add/expand JSDoc for new or updated APIs
- [ ] Run `npm run check-jsdoc-coverage` to verify
- [ ] Update feature docs in `docs/architecture/` (why, data-flow, permissions)
- [ ] Update `docs/INDEX.md` or `docs/NAVIGATION.md` for new content

## Package Documentation

- [ ] Ensure `tests/README.md` exists for each package
- [ ] Add `static_content/examples.json` where applicable
- [ ] Verify `seed/metadata.json` is complete

## Quality Metrics

- [ ] Ensure quality-metrics workflow produces documented reports
- [ ] Enforce size/complexity limits

## Future Enhancements

- [ ] Accessibility (a11y) checks in CI
- [ ] Visual regression testing
- [ ] Lua script linting
- [ ] Package validation
- [ ] Metrics dashboard
