Skip to content

Commit c69f2c6

Browse files
authored
chore(testing): remove install/list tests (#5441)
Now that we have a test for `--help` which checks to make sure native modules are working as expected, we don't need the `--install-extension` test or the `--list-extensions` test. We can also remove the `.vsix` fixture since we're not using that either.
1 parent 91589fd commit c69f2c6

File tree

3 files changed

+0
-41
lines changed

3 files changed

+0
-41
lines changed
Binary file not shown.

test/integration/installExtension.test.ts

-11
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { stat } from "fs/promises"
2-
import path from "path"
31
import { clean, tmpdir } from "../utils/helpers"
42
import { runCodeServerCommand } from "../utils/runCodeServerCommand"
53

@@ -13,15 +11,6 @@ describe("--install-extension", () => {
1311
tempDir = await tmpdir(testName)
1412
setupFlags = ["--extensions-dir", tempDir]
1513
})
16-
it("should install an extension", async () => {
17-
const extName = `wesbos.theme-cobalt2-2.1.6`
18-
const vsixFileName = "wesbos.theme-cobalt2-2.1.6.vsix"
19-
const extensionFixture = path.resolve(`./test/integration/fixtures/${vsixFileName}`)
20-
await runCodeServerCommand([...setupFlags, "--install-extension", extensionFixture])
21-
const pathToExtFolder = path.join(tempDir, extName)
22-
const statInfo = await stat(pathToExtFolder)
23-
expect(statInfo.isDirectory()).toBe(true)
24-
}, 20000)
2514
it("should use EXTENSIONS_GALLERY when set", async () => {
2615
const extName = `author.extension-1.0.0`
2716
const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], {

test/integration/listExtensions.test.ts

-30
This file was deleted.

0 commit comments

Comments
 (0)