Skip to main content

tytest

Deno-first types testing tools

What?

tytest lets you write tests for your type definitions by creating files with the *_test.ts extension.

This project was strongly influenced by tsd, and our current goal is to port tsd to Deno.

Usage

Type assertions are strict. This means that if you expect the type to be "" but the argument is of type string, the tests will fail.

import { expectType } from "https://deno.land/x/tytest@$VERSION/mod.ts";

expectType<string>("");

then,

deno run https://deno.land/x/tytest@$VERSION/cli.ts

License

Copyright Β© 2021-present TomokiMiyauci.

Released under the MIT license