Add comprehensive test coverage for document CRUD operations

- Add Document interface for type safety
- Fix error messages to include projectId context
- Add unit tests for all projectService document methods
- Add integration tests for DocsTab deletion flow
- Update vitest config to include new test files
This commit is contained in:
Rasmus Widing
2025-08-18 13:27:20 +03:00
parent d890180f91
commit 4c02dfc15d
4 changed files with 607 additions and 17 deletions

View File

@@ -13,7 +13,10 @@ export default defineConfig({
'test/components.test.tsx',
'test/pages.test.tsx',
'test/user_flows.test.tsx',
'test/errors.test.tsx'
'test/errors.test.tsx',
'test/services/projectService.test.ts',
'test/components/project-tasks/DocsTab.integration.test.tsx',
'test/config/api.test.ts'
],
exclude: ['node_modules', 'dist', '.git', '.cache', 'test.backup', '*.backup/**', 'test-backups'],
reporters: ['dot', 'json'],