symfio-contrib-fixtures

Load fixtures to database from fixtures directory.

npm install symfio-contrib-fixtures
1 downloads in the last week
42 downloads in the last month

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.

npm loves you