MCPcopy Index your code
hub / github.com/coder/code-server / runTestExtensionTests

Function runTestExtensionTests

test/e2e/extensions.test.ts:6–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import { describe, test, expect } from "./baseFixture"
5
6function runTestExtensionTests() {
7 // This will only work if the test extension is loaded into code-server.
8 test("should have access to VSCODE_PROXY_URI", async ({ codeServerPage }) => {
9 const address = await getMaybeProxiedCodeServer(codeServerPage)
10
11 await codeServerPage.waitForTestExtensionLoaded()
12 await codeServerPage.executeCommandViaMenus("code-server: Get proxy URI")
13
14 // Remove end slash in address.
15 const normalizedAddress = address.replace(/\/+$/, "")
16 await expect(codeServerPage.page.getByText(`Info: proxyUri: ${normalizedAddress}/proxy/{{port}}/`)).toBeVisible()
17 })
18}
19
20const flags = ["--disable-workspace-trust", "--extensions-dir", path.join(__dirname, "./extensions")]
21

Callers 1

extensions.test.tsFile · 0.85

Calls 3

Tested by

no test coverage detected