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
- Host: GitHub
- URL: https://github.com/tbinna/ts-jest-mock-examples
- Owner: tbinna
- License: mit
- Created: 2020-04-22T05:04:13.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:59:28.000Z (over 2 years ago)
- Last Synced: 2025-03-24T11:07:30.488Z (3 months ago)
- Topics: class, jest, mock, ts-jest, typescript
- Language: TypeScript
- Size: 651 KB
- Stars: 16
- Watchers: 1
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-jest-mock-examples

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)