Skip to content

Commit 10b47fd

Browse files
committed
feat: add EXTENSIONS_GALLERY integration test
This test ensures EXTENSIONS_GALLERY is read when set and using the `--install-extension` flag.
1 parent 7c8698b commit 10b47fd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/integration/installExtension.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,11 @@ describe("--install-extension", () => {
2222
const statInfo = await stat(pathToExtFolder)
2323
expect(statInfo.isDirectory()).toBe(true)
2424
}, 20000)
25+
it("should use EXTENSIONS_GALLERY when set", async () => {
26+
const extName = `author.extension-1.0.0`
27+
const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], {
28+
EXTENSIONS_GALLERY: "{}",
29+
})
30+
expect(stderr).toMatch("No extension gallery service configured")
31+
})
2532
})

0 commit comments

Comments
 (0)