Suites
modern unit tests framework for TypeScript back ends
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
Hey HN!Suites is a unit-testing framework for TypeScript backend systems working with dependency injection.It introduces a single declarative API for unit testing: wrap any unit with a single call and receive a correct test environment for the unit and its dependencies. // Test a class in complete isolation, all dependencies mocked TestBed.solitary(OrderService).compile(); // Or, test how it integrates with a real dependency TestBed.sociable(OrderService) .expose(PaymentProcessor) // Use the real class .compile(); The backstory: while working for a fast-growing fintech startup 4 years ago, my team had to write thousands of unit tests for our NestJS backend. To scale our efforts, I've built a unit-testing framework which eliminated a significant part of the tests' code and made them a whole lot more maintainable. I open-sourced it, generalized it to support more tech stacks, and soon it gained traction.The problem - unit testing becomes a nightmare very fast:- You mock dependencies by hand, wire them up manually, and spend more time maintaining tests than writing them. - Unit tests are leaky and error-prone since it's unclear which dependencies are mocked - Test intention is lost in the boilerplate - Each engineer invents their own conventions - Tests break during refactors because of untyped, loosely connected mocks - Missing mock implementations go unnoticed, so tests falsely fail on unexpected undefined returns or validate the wrong behavior - Test errors for wrong mocking are confusing to engineers and coding agents alikeThe nitty-gritty details:- Fluent, auto-discoverable, fully-typed API. - DI Framework Adapters: Works out of the box with NestJS and InversifyJS - Testing Library Adapters: Works out of the box with Jest, Sinon, and VitestSuites provide two modes of testing: (inspired by Martin Fowler's writings [0])- Solitary: For testing units in a vacuum, it creates type-safe mocks of all the unit's direct dependencies. - Sociable: For testing units with other related units, it allows the developer to define which dependencies to mock.Eliminating boilerplate and making mocks type-safe drastically helps coding agents (e.g. Claude Code) to write correct tests in a single pass and avoid entering infinite loops, significantly reducing token cost.You can read more about Suites on our website: https://suites.devWhat's next?- A dedicated skill for Claude Code - Extended docs with real-world patterns - More test utilities for common backend scenariosSuites is fully open-source and actively maintained for 4 years. I would love you to check it out and get your honest feedback![0] https://martinfowler.com/bliki/UnitTest.html
HN · launched Nov 4, 2025 · 19 upvotes (top 32%) · 0 views
Niche: automated software testing tools · 185 launches, 12 in the last 7 days · Explore this niche →
Category and tags
- Horizontal
- Dev tools
- Developer
- Not AI
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 185 launches in automated software testing tools →
Could you build this?
Partial A test runner wrapper can be vibe-coded, but building a declarative unit-testing framework that dynamically isolates classes and automates dependency injection mocking requires deep metaprogramming.
What it would actually take: The core framework requires deep knowledge of TypeScript compiler APIs, runtime reflection (Reflect Metadata), and dependency injection containers (like Inversify or NestJS). It must dynamically inspect class constructor parameters, generate mock proxies on the fly, and manage test scope lifecycles without leaking state between test suites.
Discussion
3 comments analyzed.
Competitors mentioned: Suites
Feature requests: bun support
Competitors
Other products that read as similar to this one : 217 launches clear the similarity bar, closest 8 shown.
Attention rank: #78 of 218 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 3 days after the earliest competitor.
- Crust · hn · 2026-03-17 · 95 upvotes · similarity 0.47
- I wrote a book · hn · 2025-12-08 · 53 upvotes · similarity 0.45
- LemmaScript, a verification toolchain for TypeScript via Dafny · hn · 2026-04-21 · 5 upvotes · similarity 0.44
- Mock and Match · ph · 2026-09-29 · 2 upvotes · similarity 0.44
- ts-rust · github · 2026-10-07 · 1036 upvotes · similarity 0.44
- Sysone · ph · 2026-09-20 · 2 upvotes · similarity 0.44
- MockJSON API · ph · 2026-09-29 · 1 upvotes · similarity 0.44
- tsrs · github · 2026-10-01 · 13 upvotes · similarity 0.44
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.