Sessions 7e-7g: Grading path unified - adapter, computeFeatures, analyzeViaEngine1, all routes migrated, dead code removed
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
// PERF-1 (Session 7d): /api/analyze caches via Redis. Second identical
|
||||
// call must hit cache (returns _cache:'HIT', does not re-invoke
|
||||
// analyzeProp). Different keys still miss.
|
||||
// call must hit cache (returns _cache:'HIT', does not re-invoke the
|
||||
// analyzer). Different keys still miss.
|
||||
// ARCH-1 (Session 7g): the analyzer target moved from propAnalyzer to
|
||||
// the unified analyzeViaEngine1. Mock target updated to follow; the
|
||||
// caching behavior under test is unchanged.
|
||||
|
||||
const mockAnalyze = jest.fn();
|
||||
jest.mock('../../src/services/propAnalyzer', () => ({
|
||||
analyzeProp: (...args) => mockAnalyze(...args),
|
||||
jest.mock('../../src/services/intelligence/analyzeViaEngine1', () => ({
|
||||
analyzeViaEngine1: (...args) => mockAnalyze(...args),
|
||||
}));
|
||||
|
||||
const mockStore = new Map();
|
||||
|
||||
Reference in New Issue
Block a user