From 73e615da4e78fa28b71331e4c31913099aa887b4 Mon Sep 17 00:00:00 2001 From: Asher Date: Fri, 5 Apr 2024 17:22:51 -0800 Subject: [PATCH] Fix extension installation test This throws now that the exit is non-zero. --- test/integration/installExtension.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/integration/installExtension.test.ts b/test/integration/installExtension.test.ts index 3c4432b73925..5986c964e912 100644 --- a/test/integration/installExtension.test.ts +++ b/test/integration/installExtension.test.ts @@ -13,9 +13,10 @@ describe("--install-extension", () => { }) it("should use EXTENSIONS_GALLERY when set", async () => { const extName = "author.extension" - const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], { - EXTENSIONS_GALLERY: "{}", - }) - expect(stderr).toMatch("No extension gallery service configured") + await expect( + runCodeServerCommand([...setupFlags, "--install-extension", extName], { + EXTENSIONS_GALLERY: "{}", + }), + ).rejects.toThrow("No extension gallery service configured") }) })