I'm having trouble w/ writing unit test for a libr...
# koin
j
I'm having trouble w/ writing unit test for a library that uses Isolated Context. It appears that previous values are retained between different test functions. What is the recommend way to restart an Isolated Context at the start of each test so that it's in an unloaded state.
a
You should avoid injecting in class properties, it will hold your previous values. After that, depends on how you setup your isolated context
j
I don't understand what you mean by "injecting in class properties". My library uses an isolated context. I would like to write unit test since I cannot clear the loaded dependencies.