Breaking change to the beta tag: beforeAll/afterAll are replaced by beforeCommand/afterCommand, which also run on executed and pending commands too now. For hooks that should only run before migrations are applied/reverted, use:
umzug.on('beforeCommand', ev => {
if (ev.command !== 'up' && ev.command !== 'down') {
return
}
// ...whatever you were doing in beforeAll/afterAll before
})