Open Issues Need Help
View All on GitHubAI Summary: This GitHub issue aims to establish a complete Jest testing infrastructure for the backend. Currently, Jest is configured but lacks actual test files, database mocking utilities, and example API endpoint tests, hindering new contributors. The proposed solution involves setting up a proper Jest config, integrating Supertest, creating database mocking utilities, and providing an example endpoint test.
AI Summary: This issue proposes setting up a complete Vitest testing infrastructure for the frontend, as the current setup lacks configuration, utilities, and example tests, hindering contributors. The solution involves creating a `vitest.config.ts` with `jsdom`, adding React Testing Library, establishing a test setup file, and providing an example component test.
AI Summary: This GitHub issue addresses the widespread use of `catch (err: any)` blocks, which compromises TypeScript's type safety and violates ESLint rules. The proposed solution is to replace `any` with `unknown` and implement proper type narrowing before accessing error properties within each catch block.
AI Summary: The analytics service currently uses `any` types for database query results, negating TypeScript's benefits like type safety, autocompletion, and compile-time checks. The proposed solution is to define specific interfaces for each query's result shape and replace all instances of `any` with these proper types.