Session 7h: Stripe products, tier config, scan limits, response gating, free tier

This commit is contained in:
Kev
2026-06-10 13:24:11 -04:00
parent 4e18eb1efe
commit d4e5e76452
16 changed files with 750 additions and 6 deletions
+6
View File
@@ -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');