diff --git a/test/integration/fixtures/wesbos.theme-cobalt2-2.1.6.vsix b/test/integration/fixtures/wesbos.theme-cobalt2-2.1.6.vsix deleted file mode 100644 index c53c04d81270..000000000000 Binary files a/test/integration/fixtures/wesbos.theme-cobalt2-2.1.6.vsix and /dev/null differ diff --git a/test/integration/installExtension.test.ts b/test/integration/installExtension.test.ts index ad4756f8a8d6..9f3b69d143cb 100644 --- a/test/integration/installExtension.test.ts +++ b/test/integration/installExtension.test.ts @@ -1,5 +1,3 @@ -import { stat } from "fs/promises" -import path from "path" import { clean, tmpdir } from "../utils/helpers" import { runCodeServerCommand } from "../utils/runCodeServerCommand" @@ -13,15 +11,6 @@ describe("--install-extension", () => { tempDir = await tmpdir(testName) setupFlags = ["--extensions-dir", tempDir] }) - it("should install an extension", async () => { - const extName = `wesbos.theme-cobalt2-2.1.6` - const vsixFileName = "wesbos.theme-cobalt2-2.1.6.vsix" - const extensionFixture = path.resolve(`./test/integration/fixtures/${vsixFileName}`) - await runCodeServerCommand([...setupFlags, "--install-extension", extensionFixture]) - const pathToExtFolder = path.join(tempDir, extName) - const statInfo = await stat(pathToExtFolder) - expect(statInfo.isDirectory()).toBe(true) - }, 20000) it("should use EXTENSIONS_GALLERY when set", async () => { const extName = `author.extension-1.0.0` const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], { diff --git a/test/integration/listExtensions.test.ts b/test/integration/listExtensions.test.ts deleted file mode 100644 index b723fbd3efb0..000000000000 --- a/test/integration/listExtensions.test.ts +++ /dev/null @@ -1,30 +0,0 @@ -import extract from "extract-zip" -import { rename } from "fs/promises" -import path from "path" -import { clean, tmpdir } from "../utils/helpers" -import { runCodeServerCommand } from "../utils/runCodeServerCommand" - -describe("--list-extensions", () => { - const testName = "listExtensions" - const extName = `wesbos.theme-cobalt2` - const extVersion = "2.1.6" - const vsixFileName = `${extName}-${extVersion}.vsix` - let tempDir: string - let setupFlags: string[] - - beforeEach(async () => { - await clean(testName) - tempDir = await tmpdir(testName) - setupFlags = ["--extensions-dir", tempDir] - const extensionFixture = path.resolve(`./test/integration/fixtures/${vsixFileName}`) - // Make folder because this is where we'll move the extension - const pathToUnpackedExtension = path.join(tempDir, `${extName}-${extVersion}`) - const tempPathToUnpackedExtension = path.join(tempDir, `${extName}-temp`) - await extract(extensionFixture, { dir: tempPathToUnpackedExtension }) - await rename(path.join(tempPathToUnpackedExtension, "extension"), pathToUnpackedExtension) - }) - it("should list installed extensions", async () => { - const { stdout } = await runCodeServerCommand([...setupFlags, "--list-extensions"]) - expect(stdout).toMatch(extName) - }, 20000) -})