From 43f814db28c09ad4461a064521953cd87828815f Mon Sep 17 00:00:00 2001 From: Diego Fernandes Date: Sun, 29 Jul 2018 03:32:32 -0300 Subject: [PATCH] refactor(vowfile): silent migrations during tests ## Proposed changes By default the migration output is shown, with silent option only one message with the migration status is shown. ## Types of changes Migrations are now runned in silent mode. - [ ] Bugfix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) ## Checklist - [x] I have read the [CONTRIBUTING](https://github.com/adonisjs/adonis-vow/CONTRIBUTING.md) doc - [x] Lint and unit tests pass locally with my changes - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added necessary documentation (if appropriate) --- templates/vowfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/vowfile.js b/templates/vowfile.js index ab90594..8ef3d60 100644 --- a/templates/vowfile.js +++ b/templates/vowfile.js @@ -34,7 +34,7 @@ module.exports = (cli, runner) => { | Migrate the database before starting the tests. | */ - // await ace.call('migration:run') + // await ace.call('migration:run', {}, { silent: true }) }) runner.after(async () => { @@ -57,6 +57,6 @@ module.exports = (cli, runner) => { | original state | */ - // await ace.call('migration:reset') + // await ace.call('migration:reset', {}, { silent: true }) }) }