factory-girl icon indicating copy to clipboard operation
factory-girl copied to clipboard

A factory library for node.js and the browser inspired by factory_girl

Results 31 factory-girl issues
Sort by recently updated
recently updated
newest added

Helly Simon. Congrats on the lib. I've been using it since 2016. Today I migrated to the 4.3.0 version as I am creating new tests in my application. Right now...

Hello! This PR adds an adapter that supports [Objection.js](https://github.com/Vincit/objection.js). As mentioned in #104, I'm having a bit of trouble getting tests to pass with the default Babel setup. If I...

I wanted a full name consisting of chance.first() and chance.last() but ```javascript name: `${factory.chance('first')} ${factory.chance('last')}` ``` gives me ```sh name: 'function () {\n return generator.generate.apply(generator, args);\n } function () {\n...

Factory-girl does not support being passed an object spec where a member has the value `undefined`. This happens: ```bash $ npm test -- test/utils/asyncPopulateSpec.js > [email protected] test /Users/pdokas/dev/factory-girl > NODE_ENV=test...

Is it possible to provide a seed to the factory so that running `factory.chance` will give repeatable results? The Chance documentation says that a seed can be provided to Chance...

I came to have a very different situation with initializer function. I want to grab the attributes and values passed to `create(attrs)` or `build(attrs)` functions in the initializer I passed...

Sometimes, we want to remove defined factory. In my case, I need it because when I use mocha, it watches my files and re-runs project tests, it will say that...

Hi, I'm working on an adapter for [Objection.js](https://github.com/Vincit/objection.js) and ran into the following error when attempting to run tests for it: ``` ObjectionAdapter #build builds the model: TypeError: Class constructor...

It'd be good to have builds for environments that provide async/await natively, to avoid pre-compilation steps that yield ugly stack traces.

I've made some changes to factory-girl so that it runs natively (without Babel pre-compilation) in Node. Only problem is the build script complains that there's no default export because it...