From d31c59fedc9954d2d5c9dac742ac3b152c2412c7 Mon Sep 17 00:00:00 2001 From: Nimrod Gutman Date: Thu, 19 Mar 2026 15:05:52 +0200 Subject: [PATCH] test(plugins): avoid literal duplicate import specifier --- src/plugins/commands.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/commands.test.ts b/src/plugins/commands.test.ts index 29a0dd66344..84dc1dc728d 100644 --- a/src/plugins/commands.test.ts +++ b/src/plugins/commands.test.ts @@ -109,7 +109,8 @@ describe("registerPluginCommand", () => { }); it("shares plugin commands across duplicated module instances", async () => { - const duplicateCommands = (await import("./commands.js?duplicate=1")) as { + const duplicateSpecifier = "./commands.js?duplicate=1"; + const duplicateCommands = (await import(duplicateSpecifier)) as { clearPluginCommands: () => void; getPluginCommandSpecs: (provider?: string) => Array<{ name: string;