node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

symfio-contrib-fixtures

symfio-contrib-fixtures

Load fixtures to database from fixtures directory.

Build Status Dependency Status

Usage

symfio = require "symfio"
 
container = symfio "example"__dirname
 
container.inject require "symfio-contrib-mongoose"
container.inject require "symfio-contrib-fixtures"

Dependencies

Configuration

fixturesDirectory

Default value is fixtures.

Services

fixture

Fixture loading helper. First argument is path to fixture file.

fixtures

Fixtures loading helper. First argument is path to directory with fixture files.

loadFixtures

Function used to load fixtures after all plugins is loaded.