msal-react-tester icon indicating copy to clipboard operation
msal-react-tester copied to clipboard

Do no reset every mock, when calling resetSpyMsal()

Open anotherHoffmann opened this issue 1 year ago • 3 comments

When calling resetSpyMsal(), every mock of the test-runner is reset, which causes issues when one is also mocking other functionality than MSAL.

resetSpyMsal() {
    this._testRunner.resetAllMocks();
    this.accounts = [];
    this.activeAccount = null;
    this._eventCallbacks = [];
}

Is there a possibility to only reset mocks related to MSAL?

anotherHoffmann avatar Jan 24 '24 13:01 anotherHoffmann