An open API service indexing awesome lists of open source software.

https://github.com/tbinna/ts-jest-mock-examples

Examples on how to use ts-jest to mock classes written in Tyepescript
https://github.com/tbinna/ts-jest-mock-examples

class jest mock ts-jest typescript

Last synced: 2 months ago
JSON representation

Examples on how to use ts-jest to mock classes written in Tyepescript

Awesome Lists containing this project

README

        

# ts-jest-mock-examples

![Build](https://github.com/tbinna/ts-jest-mock-examples/workflows/Build/badge.svg)

Install: `yarn`

Run tests: `yarn test`

Related jest documentation:

- [In depth: Understanding mock constructor functions](https://jestjs.io/docs/en/es6-class-mocks#in-depth-understanding-mock-constructor-functions)