0.0.2 • Published 4 years ago

ts-auto-mock-random-values v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Ts Auto Mock

Test npm version Downloads Greenkeeper badge

slack Need help? Join us on Slack

A Typescript transformer that will allow you to create mock for any types (Interfaces, Classes, ...) without 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

Roadmap

Authors

License

This project is licensed under the MIT License