From 4a57795abb4fbdf64cf1fe213644803ac00dc793 Mon Sep 17 00:00:00 2001 From: Taylor Mullen Date: Mon, 23 Mar 2026 17:07:10 -0700 Subject: [PATCH] chore(test): add cleanup to open-plugin-discovery tests --- packages/cli/src/config/open-plugin-discovery.test.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/cli/src/config/open-plugin-discovery.test.ts b/packages/cli/src/config/open-plugin-discovery.test.ts index c2a1830cf8..4cfc5ce37a 100644 --- a/packages/cli/src/config/open-plugin-discovery.test.ts +++ b/packages/cli/src/config/open-plugin-discovery.test.ts @@ -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 });