chore(test): add cleanup to open-plugin-discovery tests

This commit is contained in:
Taylor Mullen
2026-03-23 17:07:10 -07:00
committed by ruomeng
parent 10992dd9f9
commit 4a57795abb
@@ -65,6 +65,12 @@ describe('ExtensionManager - Open Plugin Support', () => {
});
});
afterEach(() => {
if (fs.existsSync(tempHomeDir)) {
fs.rmSync(tempHomeDir, { recursive: true, force: true });
}
});
it('should discover a plugin with plugin.json', async () => {
const pluginDir = path.join(userExtensionsDir, 'test-plugin');
fs.mkdirSync(pluginDir, { recursive: true });