Skip to content

How do I import and use this project as ES6 module? #9

@rednotice

Description

@rednotice

I tried to use factory-bot like this:

import factory from 'factory-bot';

factory.define('User', User, {
    name: factory.chance('name'),
    email: factory.chance('email')
});

But got an error:

TypeError: factory.define is not a function

Please help me :( How do I import and use this as ES6 modules?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions