Do you want to request a feature or report a bug?
feature
What is the current behavior?
no such functions
What is the expected behavior?
something like
let db = null
aroundAll((next) => {
db = makeDb()
next()
cleanupDb(db)
})
There is beforeAll or beforeEach.
but no around, which is tidier
rspec has this feature
https://relishapp.com/rspec/rspec-core/v/2-0/docs/hooks/around-hooks
before... and after... are not replacements for having an around... callback.
This is needed to run each test within a database transaction for example.
Most helpful comment
before...andafter...are not replacements for having anaround...callback.This is needed to run each test within a database transaction for example.