Browse Source

fix(preset): add module-state teardown in tracks-active-preset test

ReqX 3 months ago
parent
commit
890d64bafc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/tools/preset-manager.test.ts

+ 3 - 0
src/tools/preset-manager.test.ts

@@ -542,6 +542,9 @@ describe('createPresetManager', () => {
         output4,
         output4,
       );
       );
       expect(getOutputText(output4)).toContain('powerful ← active');
       expect(getOutputText(output4)).toContain('powerful ← active');
+
+      // Cleanup module state
+      setActiveRuntimePreset(null);
     });
     });
   });
   });