├── .gitattributes ├── .github └── workflows │ └── test.yml ├── .gitignore ├── CHANGELOG.md ├── LICENSE.txt ├── README.md ├── docs ├── publishing.md └── tutorial.md ├── index.d.ts ├── main.js ├── package.json ├── src ├── Factory.js ├── FactoryGirl.js ├── adapters │ ├── BookshelfAdapter.js │ ├── DefaultAdapter.js │ ├── MongodbAdapter.js │ ├── MongooseAdapter.js │ ├── MonkAdapter.js │ ├── ObjectAdapter.js │ ├── ReduxORMAdapter.js │ └── SequelizeAdapter.js ├── generators │ ├── Assoc.js │ ├── AssocAttrs.js │ ├── AssocAttrsMany.js │ ├── AssocMany.js │ ├── ChanceGenerator.js │ ├── Generator.js │ ├── OneOf.js │ └── Sequence.js ├── index.js └── utils │ └── asyncPopulate.js └── test ├── .eslintrc ├── FactoryGirlSpec.js ├── FactorySpec.js ├── adapters ├── BookshelfAdapterSpec.js ├── DefaultAdapterSpec.js ├── MongooseAdapterSpec.js ├── ObjectAdapterSpec.js ├── ReduxORMAdapterSpec.js └── SequelizeAdapterSpec.js ├── generators ├── AssocAttrsManySpec.js ├── AssocAttrsSpec.js ├── AssocManySpec.js ├── AssocSpec.js ├── ChanceGeneratorSpec.js ├── GeneratorSpec.js ├── OneOfSpec.js ├── SequenceSpec.js └── generatorThunkSpec.js ├── indexSpec.js ├── integration ├── BookshelfAdapterSpec.js ├── MongodbAdapterSpec.js ├── MongooseAdapterSpec.js ├── SequelizeAdapterSpec.js └── indexSpec.js ├── lint.js ├── test-helper ├── DummyAdapter.js ├── DummyFactoryGirl.js ├── DummyGenerator.js ├── DummyModel.js ├── DummyMongooseModel.js ├── DummyReduxORMModel.js ├── DummySequelizeModel.js ├── asyncFunction.js ├── dummyFactories.js ├── dummyModels.js └── testUtils.js ├── test.html └── utils └── asyncPopulateSpec.js / .gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/ .gitattributes -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/README.md -------------------------------------------------------------------------------- /docs/publishing.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/docs/publishing.md -------------------------------------------------------------------------------- /docs/tutorial.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/docs/tutorial.md -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/index.d.ts -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/main.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/package.json -------------------------------------------------------------------------------- /src/Factory.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/Factory.js -------------------------------------------------------------------------------- /src/FactoryGirl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/FactoryGirl.js -------------------------------------------------------------------------------- /src/adapters/BookshelfAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/BookshelfAdapter.js -------------------------------------------------------------------------------- /src/adapters/DefaultAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/DefaultAdapter.js -------------------------------------------------------------------------------- /src/adapters/MongodbAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/MongodbAdapter.js -------------------------------------------------------------------------------- /src/adapters/MongooseAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/MongooseAdapter.js -------------------------------------------------------------------------------- /src/adapters/MonkAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/MonkAdapter.js -------------------------------------------------------------------------------- /src/adapters/ObjectAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/ObjectAdapter.js -------------------------------------------------------------------------------- /src/adapters/ReduxORMAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/ReduxORMAdapter.js -------------------------------------------------------------------------------- /src/adapters/SequelizeAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/adapters/SequelizeAdapter.js -------------------------------------------------------------------------------- /src/generators/Assoc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/Assoc.js -------------------------------------------------------------------------------- /src/generators/AssocAttrs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/AssocAttrs.js -------------------------------------------------------------------------------- /src/generators/AssocAttrsMany.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/AssocAttrsMany.js -------------------------------------------------------------------------------- /src/generators/AssocMany.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/AssocMany.js -------------------------------------------------------------------------------- /src/generators/ChanceGenerator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/ChanceGenerator.js -------------------------------------------------------------------------------- /src/generators/Generator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/Generator.js -------------------------------------------------------------------------------- /src/generators/OneOf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/OneOf.js -------------------------------------------------------------------------------- /src/generators/Sequence.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/generators/Sequence.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/index.js -------------------------------------------------------------------------------- /src/utils/asyncPopulate.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/src/utils/asyncPopulate.js -------------------------------------------------------------------------------- /test/.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/.eslintrc -------------------------------------------------------------------------------- /test/FactoryGirlSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/FactoryGirlSpec.js -------------------------------------------------------------------------------- /test/FactorySpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/FactorySpec.js -------------------------------------------------------------------------------- /test/adapters/BookshelfAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/adapters/BookshelfAdapterSpec.js -------------------------------------------------------------------------------- /test/adapters/DefaultAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/adapters/DefaultAdapterSpec.js -------------------------------------------------------------------------------- /test/adapters/MongooseAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/adapters/MongooseAdapterSpec.js -------------------------------------------------------------------------------- /test/adapters/ObjectAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/adapters/ObjectAdapterSpec.js -------------------------------------------------------------------------------- /test/adapters/ReduxORMAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/adapters/ReduxORMAdapterSpec.js -------------------------------------------------------------------------------- /test/adapters/SequelizeAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/adapters/SequelizeAdapterSpec.js -------------------------------------------------------------------------------- /test/generators/AssocAttrsManySpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/AssocAttrsManySpec.js -------------------------------------------------------------------------------- /test/generators/AssocAttrsSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/AssocAttrsSpec.js -------------------------------------------------------------------------------- /test/generators/AssocManySpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/AssocManySpec.js -------------------------------------------------------------------------------- /test/generators/AssocSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/AssocSpec.js -------------------------------------------------------------------------------- /test/generators/ChanceGeneratorSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/ChanceGeneratorSpec.js -------------------------------------------------------------------------------- /test/generators/GeneratorSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/GeneratorSpec.js -------------------------------------------------------------------------------- /test/generators/OneOfSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/OneOfSpec.js -------------------------------------------------------------------------------- /test/generators/SequenceSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/SequenceSpec.js -------------------------------------------------------------------------------- /test/generators/generatorThunkSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/generators/generatorThunkSpec.js -------------------------------------------------------------------------------- /test/indexSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/indexSpec.js -------------------------------------------------------------------------------- /test/integration/BookshelfAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/integration/BookshelfAdapterSpec.js -------------------------------------------------------------------------------- /test/integration/MongodbAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/integration/MongodbAdapterSpec.js -------------------------------------------------------------------------------- /test/integration/MongooseAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/integration/MongooseAdapterSpec.js -------------------------------------------------------------------------------- /test/integration/SequelizeAdapterSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/integration/SequelizeAdapterSpec.js -------------------------------------------------------------------------------- /test/integration/indexSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/integration/indexSpec.js -------------------------------------------------------------------------------- /test/lint.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/lint.js -------------------------------------------------------------------------------- /test/test-helper/DummyAdapter.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/DummyAdapter.js -------------------------------------------------------------------------------- /test/test-helper/DummyFactoryGirl.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/DummyFactoryGirl.js -------------------------------------------------------------------------------- /test/test-helper/DummyGenerator.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/DummyGenerator.js -------------------------------------------------------------------------------- /test/test-helper/DummyModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/DummyModel.js -------------------------------------------------------------------------------- /test/test-helper/DummyMongooseModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/DummyMongooseModel.js -------------------------------------------------------------------------------- /test/test-helper/DummyReduxORMModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/DummyReduxORMModel.js -------------------------------------------------------------------------------- /test/test-helper/DummySequelizeModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/DummySequelizeModel.js -------------------------------------------------------------------------------- /test/test-helper/asyncFunction.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/asyncFunction.js -------------------------------------------------------------------------------- /test/test-helper/dummyFactories.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/dummyFactories.js -------------------------------------------------------------------------------- /test/test-helper/dummyModels.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/dummyModels.js -------------------------------------------------------------------------------- /test/test-helper/testUtils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test-helper/testUtils.js -------------------------------------------------------------------------------- /test/test.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/test.html -------------------------------------------------------------------------------- /test/utils/asyncPopulateSpec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ratson/factory-bot/HEAD/test/utils/asyncPopulateSpec.js --------------------------------------------------------------------------------