a type-testing tool that helps you incorporate these tests into your CI/CD solution
npm install -D ts-type-tester
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.