mirror of
https://github.com/coder/code-server.git
synced 2024-11-23 03:37:19 +03:00
c69f2c69f6
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.
22 lines
713 B
TypeScript
22 lines
713 B
TypeScript
import { clean, tmpdir } from "../utils/helpers"
|
|
import { runCodeServerCommand } from "../utils/runCodeServerCommand"
|
|
|
|
describe("--install-extension", () => {
|
|
const testName = "installExtension"
|
|
let tempDir: string
|
|
let setupFlags: string[]
|
|
|
|
beforeEach(async () => {
|
|
await clean(testName)
|
|
tempDir = await tmpdir(testName)
|
|
setupFlags = ["--extensions-dir", tempDir]
|
|
})
|
|
it("should use EXTENSIONS_GALLERY when set", async () => {
|
|
const extName = `author.extension-1.0.0`
|
|
const { stderr } = await runCodeServerCommand([...setupFlags, "--install-extension", extName], {
|
|
EXTENSIONS_GALLERY: "{}",
|
|
})
|
|
expect(stderr).toMatch("No extension gallery service configured")
|
|
})
|
|
})
|