Suites
modern unit tests framework for TypeScript back ends
Details
- External ID
- 45812473
- Source
- HN
- Company
- —
- Product
- Suites
- Website domain
- github.com
- Launched
- Nov. 4, 2025
- Cohort
- —
- Upvotes
- 19
- Upvotes percentile
- 0.6834061135371179
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:25 p.m.
- Updated at
- Sept. 7, 2026, 9:25 p.m.
Description
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
Enrichment
- Theme
- Vertical
- Horizontal
- Function
- Dev tools
- Audience
- Developer
- AI stance
- Not AI
- Project type
- Hobby / open-source project
- Normalized one-liner
- unit testing framework for typescript
- Manually corrected
- False
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 — 87 launches clear the similarity bar, closest 8 shown.
Attention rank: #37 of 88 (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.46
- Mock and Match · ph · 2026-09-29 · 2 upvotes · similarity 0.44
- MockJSON API · ph · 2026-09-29 · 1 upvotes · similarity 0.43
- I wrote a book · hn · 2025-12-08 · 53 upvotes · similarity 0.43
- LemmaScript, a verification toolchain for TypeScript via Dafny · hn · 2026-04-21 · 5 upvotes · similarity 0.43
- Sysone · ph · 2026-09-20 · 2 upvotes · similarity 0.43
- nestjs-api-starter · github · 2026-09-14 · 7 upvotes · similarity 0.42
- Mocktail · hn · 2026-08-14 · 25 upvotes · similarity 0.42
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a dev tools tool for Sales yet.