test(backend): fix all typescript compiler type errors in test suites

This commit is contained in:
2026-05-21 21:51:52 +07:00
parent 91e9c714df
commit a2952a32a4
6 changed files with 50 additions and 19 deletions
@@ -1,5 +1,6 @@
// File: backend/tests/integration/cross-spec/qdrant-isolation.spec.ts
// Change Log:
// - 2026-05-21: แก้ไข Type Casting ของ AiQdrantService ด้วย unknown
// - 2026-05-16: Cross-spec integration test for QdrantService projectPublicId isolation
// - 2026-05-16: Fixed mocking strategy to use factory pattern with proper method exposure
@@ -132,7 +133,9 @@ describe('Cross-Spec: QdrantService Isolation', () => {
it('should verify no rawSearch method exists (security)', () => {
// Assert: No rawSearch method that bypasses projectPublicId filtering
expect((service as Record<string, unknown>).rawSearch).toBeUndefined();
expect(
(service as unknown as Record<string, unknown>).rawSearch
).toBeUndefined();
});
it('should handle RFA cross-spec usage correctly', async () => {