Skip to content

Commit

Permalink
doc: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
joelmukuthu committed Sep 17, 2023
1 parent 199173e commit 83afb0d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ describe('migrations', function () {

> Ideally you want to test migrations using a sample database that is similar to
> your production database. This therefore assumes that you're running an SQLite
> database in production. If you run a postgres database and want to test
> against that instead, try the
> [mocha-docker-postgres](https://github.com/One-com/node-mocha-docker-postgres)
> project.
> database in production.
Alternatively, you can add the test in the migration file if you'd like to keep
things in context:
Expand Down Expand Up @@ -110,11 +107,11 @@ describe('001-create-user.js', function () {
});
```

`exports.test` is consumed by this plugin and not by Knex. You only add if you
would like to test your migrations using this plugin. In this example, `testUp`
is a hook that is run by the `to apply migration` assertion after running the
`up` migration. You can also add other hooks to set up the database before
running the migration or to tear it down:
`exports.test` is consumed by this plugin and not by Knex. You should only add
it if you would like to test your migrations using this plugin. In this example,
`testUp` is a hook that is run by the `to apply migration` assertion after
running the `up` migration. You can also add other hooks to set up the database
before running the migration or to tear it down:

```js
exports.test = function () {
Expand Down

0 comments on commit 83afb0d

Please sign in to comment.