dsherret / dsherret/conditional-type-checks

docs(): Failure Assertion

Open
#21 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
450
Forks
18
PR merge metrics
No merged PRs in 30d

Description

I have been researching solutions for TS type testing such as this repo.
It seems superior to other solutions since it exposes assertion types and not only assertion methods, keeping testing very flexible.
I think that should be documented as well as:
- a brief comparison between this repo and other solutions.
- a **Failure Assertion** how to (`// @ts-expect-error`)
- a **Running Tests** how to (simple as it may be it makes it very clear how to plug and test)
- a test case using [`ParameterType`](https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype) or another utility type

Thanks for this repo!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.