- move shared parsing/grouping helpers into serverUtils and update imports - add xcxApi singleton in serverUtils - add Redis-backed uid score store and /api/user/nowScores endpoint - preload uid scores in event loader and tags in profile loader - allow grouping prediction to switch sort mode between current/yearly score - update tags component to consume loader-provided tags - remove unused zustand game store - add redis test scaffold and scoreboard component scaffold
8 lines
267 B
TypeScript
8 lines
267 B
TypeScript
import { expect, test } from 'bun:test';
|
|
import { getUidScore } from '../src/services/uidScoreStore';
|
|
|
|
test('read redis', async () => {
|
|
const uidScore = await getUidScore(['388663']);
|
|
expect(uidScore).toBeDefined();
|
|
expect(uidScore['388663']).toBeDefined();
|
|
}); |