factory-girl
factory-girl copied to clipboard
A factory library for node.js and the browser inspired by factory_girl
```sh > require('factory-girl'); > (node:95873) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/test/Projects/web/node_modules/factory-girl/package.json' of './src/index'. Please either fix that or report it to the module author (Use `node --trace-deprecation ...` to...
I am having an issue with `factory.create` not actually creating documents in Mongo, and the `.then()` call is not executing. If I change to `factory.build` then it does generate a...
I struggled to figure out how to use factory-girl, because the tutorial and README make no mention of how the factory interacts with the model. What I learned is that...
We have a pretty denormalized schema, so we need to make a LOT of association calls to create a single object... When I get to the 3rd association, I get...
I have not been able to get it to work so far...
Probably the solution to: https://github.com/simonexmachina/factory-girl/issues/134 - Given a `parentFactory` defined with `buildOptions` with its respective callbacks. - Given a `childFactory` that extends that `parentFactory`. - Whenever a models is built...
Any plans to create TypeScript definition files?
`babel-runtime` doesn't appear to be an actual dependency anywhere in the source. Perhaps it's only used to build in a development environment? Moving this to `devDependencies` (if it isn't necessary)...
I am having an issue using Factory girl with Jest. When I create a factory, like this one: `const person = await factory.create('Person');` Inside a test, I get the following...
If original factory has async function with buildOptions parameter any factory extending from it will not pick up original attributes. ``` factory.define("orig", BasketModel, async (buildOptions = {}) => { return...