gulp-sequelize-test-setup
v1.0.0
Published
gulp plugin to set up test database and load fixtures with sequelize
Downloads
4
Readme
Sequelize Test Setup Gulp Plugin
Gulp plugin for setting up a test database and loading fixtures with Sequelize.
Install
npm install gulp-sequelize-test-setup
Usage
var sequelizeTestSetup = require('gulp-sequelize-test-setup');
gulp.task('test:setup', function () {
var models = require('./models');
return gulp.src('test/fixtures/**/*', {read: false})
.pipe(sequelizeTestSetup({
sequelize: models.sequelize,
models: models,
migrationsPath: 'migrations'
}));
});
gulp.task('test', ['test:setup'], ...);
Options
See sequelize-test-setup for all available options.