All Projects β†’ Typescript-TDD β†’ Ts Auto Mock

Typescript-TDD / Ts Auto Mock

Licence: mit
Typescript transformer to unlock automatic mock creation for interfaces and classes

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Ts Auto Mock

Mockaco
🐡 HTTP mock server, useful to stub services and simulate dynamic API responses, leveraging ASP.NET Core features, built-in fake data generation and pure C# scripting
Stars: ✭ 213 (+4.41%)
Mutual labels:  mock, fake, mocking
Fake Xrm Easy
The testing framework for Dynamics CRM and Dynamics 365 which runs on an In-Memory context and deals with mocks or fakes for you
Stars: ✭ 216 (+5.88%)
Mutual labels:  fake, mock, mocking
better-mock
Forked from Mockjs, Generate random data & Intercept ajax request. Support miniprogram.
Stars: ✭ 140 (-31.37%)
Mutual labels:  mock, fake, mocking
Http Fake Backend
Build a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 253 (+24.02%)
Mutual labels:  fake, mock, mocking
Generator Http Fake Backend
Yeoman generator for building a fake backend by providing the content of JSON files or JavaScript objects through configurable routes.
Stars: ✭ 49 (-75.98%)
Mutual labels:  fake, mock, mocking
Cuckoo
Boilerplate-free mocking framework for Swift!
Stars: ✭ 1,344 (+558.82%)
Mutual labels:  mock, mocking
Impersonator
Ruby library to record and replay object interactions
Stars: ✭ 100 (-50.98%)
Mutual labels:  fake, mock
Prig
Prig is a lightweight framework for test indirections in .NET Framework.
Stars: ✭ 106 (-48.04%)
Mutual labels:  mock, mocking
Parrot
✨ Scenario-based HTTP mocking
Stars: ✭ 109 (-46.57%)
Mutual labels:  mock, mocking
Gock
HTTP traffic mocking and testing made easy in Go ΰΌΌΚ˜ΜšΩ„ΝœΚ˜ΜšΰΌ½
Stars: ✭ 1,185 (+480.88%)
Mutual labels:  mock, mocking
Mockery
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Stars: ✭ 10,048 (+4825.49%)
Mutual labels:  mock, mocking
Nsubstitute
A friendly substitute for .NET mocking libraries.
Stars: ✭ 1,646 (+706.86%)
Mutual labels:  mock, mocking
Sns
Fake Amazon SNS
Stars: ✭ 94 (-53.92%)
Mutual labels:  fake, mock
Fakerator
Random fake data generator with localization for Javascript in Node.js and browser
Stars: ✭ 91 (-55.39%)
Mutual labels:  fake, mock
Unit Threaded
Advanced unit test framework for D
Stars: ✭ 100 (-50.98%)
Mutual labels:  mock, mocking
Openapi Sampler
πŸ”  Tool for generation samples based on OpenAPI(fka Swagger) payload/response schema
Stars: ✭ 83 (-59.31%)
Mutual labels:  fake, mock
Really Need
Node require wrapper with options for cache busting, pre- and post-processing
Stars: ✭ 108 (-47.06%)
Mutual labels:  mock, mocking
Wabbit
Golang AMQP mocking library
Stars: ✭ 137 (-32.84%)
Mutual labels:  fake, mock
Duckrails
Development tool to mock API endpoints quickly and easily (docker image available)
Stars: ✭ 1,690 (+728.43%)
Mutual labels:  mock, mocking
Httpretty
Intercept HTTP requests at the Python socket level. Fakes the whole socket module
Stars: ✭ 1,930 (+846.08%)
Mutual labels:  mock, mocking

TS auto mock

Test npm version Downloads semantic-release Commitizen friendly

All Contributors

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<Person>();
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

πŸ› πŸ’»
πŸ€” πŸ”§ πŸ’¬ πŸ€” πŸš‡ 🚧 πŸ“†
Marc

πŸ› πŸ’»
πŸ€” πŸ’¬ πŸ€” πŸš‡ 🚧 πŸ“† πŸ”§

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

License

This project is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].