Hook definition DSL. Use in support files:
use Cucumberex.Hooks.DSL
before_ fn world -> Map.put(world, :db, start_db()) end
before_ "@smoke", fn world -> Map.put(world, :smoke, true) end
after_ fn world ->
cleanup(world.db)
world
end
around_ fn world, run ->
result = run.(world)
cleanup(world)
result
end
before_all_ fn -> :ok end
after_all_ fn -> :ok end