Files
rxminder/jest.config.json
William Valentin 598c1da17b Complete database service consolidation and documentation
 Features:
- Add comprehensive database service documentation
- Create detailed module README with usage examples
- Expand main documentation index with database links
- Add component test support to Jest configuration

🔧 Improvements:
- Fix AvatarDropdown test failures (dark mode classes and rapid clicking)
- Update documentation version to 2.1
- Include migration guide and troubleshooting sections
- Add performance considerations and security notes

📚 Documentation:
- Complete API reference with code examples
- Architecture overview with Strategy pattern explanation
- Environment configuration and strategy selection guide
- Best practices and development guidelines
- Comprehensive refactoring summary

🧪 Testing:
- All 292 tests passing across all modules
- Component tests now properly integrated with Jest
- Fixed TypeScript compatibility issues in tests
- Verified database service functionality in all environments

📋 Summary:
- Removed deprecated CouchDB service files
- Consolidated database operations under unified service
- Enhanced documentation structure and content
- Improved test coverage and reliability
- Maintained backward compatibility where possible
2025-09-08 18:59:08 -07:00

37 lines
1.1 KiB
JSON

{
"preset": "ts-jest",
"testEnvironment": "jsdom",
"setupFilesAfterEnv": ["<rootDir>/tests/setup.ts"],
"testMatch": [
"<rootDir>/services/**/__tests__/**/*.test.ts",
"<rootDir>/utils/**/__tests__/**/*.test.ts",
"<rootDir>/types/**/__tests__/**/*.test.ts",
"<rootDir>/components/**/__tests__/**/*.test.tsx",
"<rootDir>/tests/**/*.test.ts",
"<rootDir>/tests/**/*.test.js"
],
"collectCoverageFrom": [
"services/**/*.ts",
"components/**/*.tsx",
"hooks/**/*.ts",
"utils/**/*.ts",
"types/**/*.ts",
"!**/*.d.ts",
"!**/__tests__/**"
],
"coverageDirectory": "coverage",
"coverageReporters": ["text", "lcov", "html"],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/$1",
"^uuid$": "<rootDir>/tests/__mocks__/uuid.js",
"^node-fetch$": "<rootDir>/tests/__mocks__/node-fetch.js"
},
"transform": {
"^.+\\.tsx?$": "ts-jest",
"^.+\\.jsx?$": "babel-jest"
},
"transformIgnorePatterns": ["node_modules/(?!(@jest/transform|uuid|node-fetch)/)"],
"testTimeout": 30000,
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"]
}