Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save craigtaub/4c7edec319dda655c1eba197ae1850a4 to your computer and use it in GitHub Desktop.
Save craigtaub/4c7edec319dda655c1eba197ae1850a4 to your computer and use it in GitHub Desktop.
Runner.prototype.hooks = function(name, callback) {
function next(suite) {
if (!suite) callback()
hook(name, () => {
next(suites.pop()) // run hooks for next suite
})
}
next()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment