ember-cli-data-factory-guy is a wrapper around ember-data-factory-guy for ember-cli.
To install, run:
npm install --save-dev ember-cli-data-factory-guy
-
ember g ember-cli-data-factory-guy
to install ember-data-factory-guy as a bower package.
In your test files, use import FactoryGuy from 'factory-guy'
to get the main FactoryGuy
object. You'll need that object in order to create factories by calling FactoryGuy.define
.
Use import { testMixin as FactoryGuyTestMixin } from 'factory-guy';
to get the test mixin, and then follow the FactoryGuyTestMixin usage instructions.