fake-factory
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

Fake Model Factory for mogngoose models

How to install

    npm i facke-factory

It's easy to use:

Using with Typescript:

    import mongoose from "mongoose";
    import Factory from "fake-factory";

    const factory = new Factory('<Model name as defined in model creation>');
    const defaults = await factory.createInstance({
        name: "Mohamed"
    });
    console.log(defaults);

Package Sidebar

Install

npm i fake-factory

Weekly Downloads

1

Version

0.4.0

License

ISC

Unpacked Size

17.1 kB

Total Files

6

Last publish

Collaborators

  • m4gdy
  • mohamed-ismail