@tutao/otest
TypeScript icon, indicating that this package has built-in type declarations

230.240528.0 • Public • Published

otest

A little testing library. Current functionality:

  • A test runner
  • Grouping tests & specs into specs
  • Assertions
  • "spying" on functions
  • Printing the results
  • Filtering on test/spec name

Started as ospec re-implementation with filter support, the API is subject to change. Rough TODO list:

  • getting rid of overloaded o function, giving things proper greppable names
  • improving API for describing assertions
  • making it easier to supply custom matchers
  • including mocking/spying out of the box

API

See otest.ts

See Assertion.ts

Readme

Keywords

none

Package Sidebar

Install

npm i @tutao/otest

Weekly Downloads

176

Version

230.240528.0

License

GPL-3.0

Unpacked Size

60.3 kB

Total Files

14

Last publish

Collaborators

  • tutao_owner
  • tutao_publish