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
arnaud.giuliani
08/08/2025, 7:15 AM
You should avoid injecting in class properties, it will hold your previous values. After that, depends on how you setup your isolated context
j
Jonathan
10/17/2025, 12:15 AM
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.