Description
TSTyche is a testing tool for TypeScript types. Instead of checking runtime values, it checks what the compiler infers and whether a type accepts or rejects a given use, so you can test that your type definitions behave as you expect. It ships describe(), test() and it() helpers, expect-style assertions that work on inferred types or on a type directly, and a test runner with run mode flags such as .only, .skip and .todo. The docs cover a project setup walkthrough, compiler options, reporters, programmatic usage, the Expect API, the Testing API, type utilities, comment directives, the configuration file and the command line. There is also a guide for using TSTyche with AI agent skills. The project is open source and its code is on GitHub. The site says version 7.2 is the current release.…
Highlights
- Type tests with describe(), test() and it()
- Expect-style assertions on inferred types
- Runner with .only, .skip and .todo modes
- Reporters, configuration file and command line
- Programmatic usage and type utilities
Ratings & Reviews
No ratings yet
Be the first to rate Tstyche.
People also visit

Testing Playground
Simple and complete DOM testing playground that encourage good testing practices
Tstyche FAQ
What does TSTyche test?
The types in your TypeScript code. It checks the inferred type of an expression and whether a type accepts certain uses.
What does a test look like?
You import expect and test from tstyche, then call a test block with assertions such as expect(...).type.toBe<boolean>().
Which assertions are there?
The expect style checks the inferred type of an expression or a type directly. Examples in the docs include toBe and toBeCallableWith, and not negates them.
Is it free?
Yes. It is open source, and the code is public on GitHub at tstyche/tstyche.
What are the best Tstyche alternatives?
Popular alternatives to Tstyche include Testing Playground, Expect and TestDriver. See all Tstyche alternatives










