How to run migration before test, and reset it after test?

I know it should be in the hooks, but I don’t know how to call migration commmand inside it.

You can define it on vowfile, see this example