Skip to content

feat: add advanced middleware unit tests (#424)#457

Merged
phertyameen merged 1 commit intoMindBlockLabs:mainfrom
Ummi-001:feature/advanced-middleware-tests
Mar 29, 2026
Merged

feat: add advanced middleware unit tests (#424)#457
phertyameen merged 1 commit intoMindBlockLabs:mainfrom
Ummi-001:feature/advanced-middleware-tests

Conversation

@Ummi-001
Copy link
Copy Markdown
Contributor

What I did

  • Created tests/unit/advanced/ folder
  • Added circuit-breaker.spec.ts — tests all 3 state transitions using jest.useFakeTimers()
  • Added async-context.spec.ts — tests concurrent context isolation with no leakage
  • Added webhook-signature.spec.ts — tests Stripe, GitHub, Slack + replay attack
  • Added adaptive-rate-limiter.spec.ts — mocks os.cpus() for high/low load simulation.

Closes #423
Closes #424
Closes #425
Closes #426

@phertyameen phertyameen merged commit 02b3e16 into MindBlockLabs:main Mar 29, 2026
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants