ts-mockito logo

ts-mockito

Mocking library for TypeScript inspired by Mockito
31
1
+ 1
0

What is ts-mockito?

It is a mocking library for TypeScript inspired by Mockito. It is strongly typed, can capture arguments passed to a method, and recording multiple behaviors.
ts-mockito is a tool in the Testing Frameworks category of a tech stack.
ts-mockito is an open source tool with GitHub stars and GitHub forks. Here’s a link to ts-mockito's open source repository on GitHub

Who uses ts-mockito?

Developers
4 developers on StackShare have stated that they use ts-mockito.

ts-mockito Integrations

ts-mockito's Features

  • Strongly typed
  • IDE autocomplete
  • Mock creation (mock) (also abstract classes)
  • Spying on real objects (spy)
  • Changing mock behavior (when)
  • Checking if methods were called with given arguments (verify)
  • Resetting mock (reset, resetCalls)
  • Capturing arguments passed to method (capture)
  • Recording multiple behaviors
  • Readable error messages

ts-mockito Alternatives & Comparisons

What are some alternatives to ts-mockito?
JUnit
JUnit is a simple framework to write repeatable tests. It is an instance of the xUnit architecture for unit testing frameworks.
RSpec
Behaviour Driven Development for Ruby. Making TDD Productive and Fun.
PHPUnit
PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks.
pytest
A framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries. It is a mature full-featured Python testing tool.
Mockito
It is a mocking framework that tastes really good. It lets you write beautiful tests with a clean & simple API. It doesn’t give you hangover because the tests are very readable and they produce clean verification errors.
See all alternatives
Related Comparisons
No related comparisons found

ts-mockito's Followers
1 developers follow ts-mockito to keep up with related blogs and decisions.