I have a set of Jasmine unit tests which I run on my build server. I have managed to get Karma working nicely so that my tests automatically run on Chrome, Edge and Firefox every time I push to my development branch.
However, I am concerned that my tests are not independent because much of the browser state (such as global JS, the DOM, and local storage) persists between tests. In some instances I find that this allows tests to pass due to the actions of previous tests, which to me feels like bad practice. What I would like to do is force the browser to be restarted in between each test, thus creating a new, independent test environment. Is this possible?