yankeeinlondon / ts-type-tester

Test for all type errors across a set of defined Typescript files.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ts-type-tester

a type-testing tool that helps you incorporate these tests into your CI/CD solution

Installation

npm install -D ts-type-tester

Usage

You can interactively use the tool by running:

npx ts-tester [tests-folder]

But in general it is recommended to add a script to your package.json:

"scripts": {
    "test:types": "ts-tester [test-folder]"
}

There are configuration options available if you want to go beyond the basics and the best way to get an overview of this is to just run:

npx ts-tester

Without any parameters this will bring up the help system which describes all command line switches.

About

Test for all type errors across a set of defined Typescript files.

License:MIT License


Languages

Language:TypeScript 89.2%Language:JavaScript 10.8%