Skip to content

Using factorybot with node pg adapter #14

@HromayaHorse

Description

@HromayaHorse

I would like to ask is it possible to use node pg adapter (postgree) with factorybot? Because it returns me error:
TypeError: factory.Client is not a constructor

when I try to connect factorybot to the adapter.

const factory = require('factory-bot').factory; const { Client } = require('pg'); const client = new FactoryBot.Client()

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