Are there any BeforeAll and AfterAll test annotati...
# javascript
b
Are there any BeforeAll and AfterAll test annotations in js? Kotlin-test-annotations-common doesn't seem to have anything to offer for those.
👀 1
r
Been missing this too
h
How about using the
init
block as before all?
b
That would work, but I'm mainly after @AfterAll
h
Too bad 😄
c
I don't think it's possible, because you could return promises from tests, in which case the end of the call is not the end of the test
b
Well it's running on mocha in the end which does have these hooks
c
I guess you could probably write the binding yourself then 🤔 and maybe register it in
init
It'd be interesting if the library could do it
b
#kotest does it, but it's not annotation based
I'd happily use it over kotlin-test, but unfortunately it does not support native (which is one of the targets in my project)