When I setup a spec, if I use lambda instead of in...
# kotlintest
d
When I setup a spec, if I use lambda instead of init to place my tests into, that means I cannot really afterTest/beforeTest referencing stuff inside of that lambda. So if I want to reset a mock for example after each test, I need to use init {} way of writing tests or do resetting in the body of each test?
a
correct
l
Currently that's the way, yes
Althought you can probably set an afterTest that clears mocks in a project config
s
Maybe we should add new syntax that is a function call like the others
👍 1