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
+5
View File
@@ -220,8 +220,13 @@ const VALID_PARLAY = {
],
};
// Session 7h: scan-limit middleware mounts on /api/scan/parlay. Reset
// between tests so the per-user 24h quota doesn't bleed across cases.
const { __internals: scanLimitInternals } = require('../../src/middleware/scanLimit');
beforeEach(() => {
jest.clearAllMocks();
scanLimitInternals.resetForTests();
});
describe('POST /api/scan/parlay', () => {