## Description
Follow-up to #18740 addressing the 5 CodeRabbit review suggestions that
were merged without being resolved.
1. **Teardown not-found alignment** — `isNotFoundError()` in integration
tests now checks `NoSuchFile`/`NoSuchKey` codes, matching
`getMesaErrorKind()` in the provider
2. **Credential redaction test** — `getInfo()` test now passes a dummy
`apiKey` and asserts it doesn't leak into the returned info or metadata
3. **`ensureParentDirectory` validation** — after catching
`FileExistsError`, verifies the existing parent is actually a directory;
throws `NotDirectoryError` if it's a file
4. **`configSchema` cache shape** — expands `cache` from opaque `{ type:
'object' }` to mirror `diskCache.path` / `diskCache.maxSizeBytes`
structure
5. **Vitest integration glob** — adds `src/**/*.integration.test.ts` to
`include` so the integration suite is discoverable
## Related issue(s)
Follow-up to #18740
## Type of change
- [x] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [x] Test update
## Checklist
- [x] I have linked the related issue(s) in the description above
- [x] I have made corresponding changes to the documentation (if
applicable)
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have addressed all Coderabbit comments on this PR
Link to Devin session:
https://app.devin.ai/sessions/6e2998c14bbb40348849fecef26e6d8f
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Abhi Aiyer <abhi@mastra.ai>