Add timeline vector metrics

This commit is contained in:
dahyeon committed 2026-07-03 00:12:13 -07:00
1 parent 77ba93b94a
commit a69e86f2bc
13 files changed
+1543 -37

No files matched your search

@@ -131,7 +131,19 @@ describe('AnalysisReadService', () => {
expect(profileFindOne).toHaveBeenCalledWith({
puuid: 'target-puuid',
queueId: 420,
featureSchemaVersion: FEATURE_SCHEMA_VERSION,
});
expect(analysis.profile.playstyle.kda).toBe(0.8);
expect(analysis.profile.playstyle.goldDiffAt10).toBeUndefined();
expect(analysis.profile.playstyle.objectivePreWardRate).toBeUndefined();
expect(
analysis.strengths.some((metric) => metric.metricId === 'goldDiffAt10'),
).toBe(false);
expect(
analysis.weaknesses.some(
(metric) => metric.metricId === 'deathWithShutdownBountyGivenRate',
),
).toBe(false);
expect(analysis.strengths).toEqual([
{ metricId: 'deathsPerMin', value: 0.1 },
{ metricId: 'kda', value: 0.8 },