devinivy / labbable

No-fuss hapi server testing
MIT License
25 stars 5 forks source link

Hapi v17 Support #12

Closed timcosta closed 6 years ago

timcosta commented 7 years ago

Overview

If you are not aware yet, Hapi v17 is making the transition from callbacks to async/await, as well as deprecating some other rarely used functionality. This is a breaking change that may make your plugin no longer compatible with the Hapi API.

Changelog

Draft release notes can be found here: https://github.com/hapijs/hapi/issues/3658

Target Release

The target release date for v17 is the beginning of November.

Tasks

Notes

WebMatrixware commented 6 years ago

bump

devinivy commented 6 years ago

I will make a note in the readme. But labbable will not be moving forward into the land of hapi v17. It turns out that async/await alleviates the problems that labbable solves. Here is an example of suggested testing/usage with hapi v17,

Server: https://github.com/devinivy/boilerplate-api/blob/pal/server/index.js#L6 Test: https://github.com/devinivy/boilerplate-api/blob/pal/test/index.js#L19