Need help with ts-auto-mock?
Click the โ€œchatโ€ button below for chat support from the developer who created it, or find similar developers for support.

About the developer

Typescript-TDD
372 Stars 7 Forks MIT License 1.2K Commits 31 Opened issues

Description

Typescript transformer to unlock automatic mock creation for interfaces and classes

Services available

!
?

Need anything else?

Contributors list

TS auto mock

Test npm version Downloads semantic-release Commitizen friendly <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> All Contributors <!-- ALL-CONTRIBUTORS-BADGE:END --> Slack Need help? Join us on Slack

A TypeScript transformer that will allow you to create mocks for any types (interfaces, classes, etc.) without the need to create manual fakes/mocks.

API Documentation

Installation

Usage

Quick overview

import { createMock } from 'ts-auto-mock';

interface Person { id: string; getName(): string; details: { phone: number } } const mock = createMock(); mock.id // "" mock.getName() // "" mock.details // "{ phone: 0 }"

Changelog

Find the changelog here: Changelog.

Roadmap

You can find the roadmap of this project on the Wiki page: Roadmap.

Do you want to contribute?

Authors

Contributors โœจ

Thanks goes to these wonderful people (emoji key):


Artem Kornev

๐Ÿ› ๐Ÿ’ป

Fabian

๐Ÿ› ๐Ÿ’ป

Geoffrey 'C0ZEN' Testelin

๐Ÿ› ๐Ÿ’ป ๐Ÿค” ๐Ÿ”ง

Giulio Caprino

๐Ÿ’ฌ ๐Ÿ’ป ๐Ÿ“– ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿ“†

Marc

๐Ÿ› ๐Ÿ’ป

Martin Jesper Low Madsen

๐Ÿ› ๐Ÿ’ป ๐Ÿค”

Vittorio Guerriero

๐Ÿ’ฌ ๐Ÿ’ป ๐Ÿค” ๐Ÿš‡ ๐Ÿšง ๐Ÿ“† ๐Ÿ”ง

This project follows the all-contributors specification. Contributions of any kind welcome!

License

This project is licensed under the MIT License.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.