Session 7h: Stripe products, tier config, scan limits, response gating, free tier
This commit is contained in:
@@ -18,6 +18,12 @@ jest.mock('../../src/utils/redis', () => ({
|
||||
isDegraded: () => false,
|
||||
}));
|
||||
|
||||
// Session 7h: scan-limit middleware now mounts on /api/analyze. Reset
|
||||
// between tests so the cumulative anonymous-IP quota doesn't leak
|
||||
// across cases and 429 the cache assertions.
|
||||
const { __internals: mockScanLimitInternals } = require('../../src/middleware/scanLimit');
|
||||
beforeEach(() => mockScanLimitInternals.resetForTests());
|
||||
|
||||
const express = require('express');
|
||||
const analyze = require('../../src/routes/analyze');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user