{"repo":"tstyche/tstyche","free":true,"listed":false,"github":"https://github.com/tstyche/tstyche","clone":"git clone https://github.com/tstyche/tstyche.git","description":"Everything You Need for Type Testing.","language":"TypeScript","stars":322,"topics":["developer-tools","test","test-runner","testing-tools","types","typescript","expect"],"license":"MIT","category":"dev-tools","readme_excerpt":"TSTyche [![version][version-badge]][version-url] [![license][license-badge]][license-url] [![install-size][install-size-badge]][install-size-url] [![coverage][coverage-badge]][coverage-url] Everything You Need for Type Testing. --- TSTyche is a type testing tool for TypeScript. It ships with describe() and test() helpers, expect style assertions and a mighty test runner. Helpers If you are used to testing, a type test should look familiar: TSTyche lets you organize tests using: - helpers: test() , it() and describe() - run mode flags: .only , .skip and .todo Assertions The expect style assertions can check either the inferred type of an expression or a type directly: Relation matchers: - .toBe() checks if a type is the same as the given type - .toBeAssignableFrom() checks if a type is assignable from the given type - .toBeAssignableTo() checks if a type is assignable to the given type Ability matchers: - .toAcceptProps() checks if a JSX component accepts the given props - .toBeApplicable checks if a decorator is applicable to the given class or class member - .toBeCallableWith() checks if a function is callable with the given arguments - .toBeConstructableWith() checks if a class is constructable with the given arguments - .toBeInstantiableWith() checks if a generic is instantiable with the given type arguments - .toHaveProperty() checks if a type has the given property Runner The tstyche command is the heart of TSTyche. It lets you select test files by path, filter tests by ","default_branch":null,"files":null,"tree":[],"storefront":"/r/tstyche","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tstyche/tstyche/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}