Commit Graph
8 Commits
Author SHA1 Message Date
adrianbonpin 05ddb8b4cc fix: resolve module mock conflicts in metadata and sitemap tests
- Add missing drizzle-orm exports (avg, count) to metadata and sitemap test mocks
- Add missing schema exports (steamReviewSentimentEnum) to metadata and sitemap test mocks
- Add missing schema tables (gameVersions, performanceEntries, gameComments, gamePlatformSupport, user, entryScreenshots) to sitemap test mock
- Remove @/lib/steam/sync mock from metadata test to prevent module mock caching conflicts
- Add auth export to @/lib/auth mock

This fixes 7 pre-existing test failures caused by module mock interference
when test files run in the same process.
2026-05-28 00:03:57 +08:00
adrianbonpin 535836b6ba test: add sitemap integration constraint verification (Task 3) 2026-05-25 21:29:10 +08:00
adrianbonpin 5083255654 feat: rewrite sitemap with generateSitemaps pattern — 4 isolated child sitemaps (Task 2) 2026-05-25 21:24:11 +08:00
adrianbonpin 49800c3cc2 test: final metadata integration sweep — verify all page titles (Task 11) 2026-05-25 19:42:05 +08:00
adrianbonpin db9a9150e8 test: add metadata integration test scaffold for SEO fixes (Task 2) 2026-05-25 19:28:43 +08:00
adrianbonpin 8948113c0f feat: robust sitemap with error handling, missing pages, and full test coverage
- Add querySafe() wrapper with 15s timeout so DB failures don't crash the sitemap
- Add missing pages: /compare, /search, /updates/[slug] (from markdown)
- Bump game page priority to 0.8; add lastModified where available
- Expand test suite from 4 to 10 tests covering all data sources
- All 10 tests passing
2026-05-23 15:37:17 +08:00
adrianbonpin c808747b9d fix: correct sitemap test count and steamdb version extraction 2026-05-20 02:27:56 +08:00
adrianbonpin 32386ce170 fix: resolve all ESLint errors and warnings
- Replace  types with  and proper type casting
- Remove unused imports and variables across multiple files
- Fix React set-state-in-effect by suppressing with eslint-disable
- Wrap handleFile in useCallback to stabilize hook dependencies
- Remove dead MetaItem component from game-page-client
- Add public/sw.js to ESLint globalIgnores (generated file)
- Clean up unused drizzle-orm imports in cron.ts, dashboard-public.ts
- Remove unused _configured flag from r2-client.ts
2026-05-09 16:38:29 +08:00