Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 456 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 456 Bytes

factory-girl-mongoose

A ReduxORM adapter for factory-girl

Usage

import { factory } from 'factory-girl';
import ReduxORMAdapter from 'factory-girl-redux-orm';
import orm from '<YOUR REDUX ORM  MODELS DIRECTORY'>

const session = orm.session(); // Before withMutations;
factory.setAdapter(new ReduxORMAdapter(session));