Skip to content

Commit

Permalink
chore(testing): remove install/list tests (coder#5441)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jsjoeio authored Aug 10, 2022
1 parent 91589fd commit c69f2c6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 41 deletions.
Binary file not shown.
11 changes: 0 additions & 11 deletions test/integration/installExtension.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { stat } from "fs/promises"
import path from "path"
import { clean, tmpdir } from "../utils/helpers"
import { runCodeServerCommand } from "../utils/runCodeServerCommand"

Expand All @@ -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], {
Expand Down
30 changes: 0 additions & 30 deletions test/integration/listExtensions.test.ts

This file was deleted.

0 comments on commit c69f2c6

Please sign in to comment.