aglinxinyuan commented on code in PR #6743:
URL: https://github.com/apache/texera/pull/6743#discussion_r3627633934
##########
frontend/src/app/workspace/component/result-panel/result-panel.component.spec.ts:
##########
@@ -76,6 +87,23 @@ describe("ResultPanelComponent", () => {
fixture.detectChanges();
});
+ afterEach(() => {
+ // Several added tests install spies on the global `window` / shared
service
+ // instances and drive real streams; restore everything and tear the
fixture
+ // down so state never leaks into the next test.
+ vi.restoreAllMocks();
+ fixture.destroy();
+ });
Review Comment:
Fixed — afterEach now removes only the three persisted keys
(result-panel-width/height/style) after fixture.destroy(), not
localStorage.clear(), so no state leaks across specs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]