Skip to content

Composable equality and pretty-printing for TypeScript. Useful for building test assertion libraries.

License

Notifications You must be signed in to change notification settings

tinymce/dispute

Repository files navigation

Dispute

This library contains the following basic type classes:

  • Eq - equality
  • Show - printing values as literals for debugging
  • Pprint - pretty-printing values
  • Testable - Eq and Pprint

Testable is useful for test assertion libraries. You can use Dispute functionality test that two values are equal, and if they're not, pretty-print the expected and actual.

Dispute provides instances for common TypeScript types, as well as for any types, using type inspection. It is also extendable to types which can't be compared correctly with type inspection - e.g. church-encoded types.

Dispute is used in the Bedrock test runner.

About

Composable equality and pretty-printing for TypeScript. Useful for building test assertion libraries.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published