Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Commit

Permalink
refactor(vowfile): silent migrations during tests
Browse files Browse the repository at this point in the history
## 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)
  • Loading branch information
diego3g authored and thetutlage committed Jul 29, 2018
1 parent 9b2b266 commit 43f814d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/vowfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand All @@ -57,6 +57,6 @@ module.exports = (cli, runner) => {
| original state
|
*/
// await ace.call('migration:reset')
// await ace.call('migration:reset', {}, { silent: true })
})
}

0 comments on commit 43f814d

Please sign in to comment.