Files
code-server/test/e2e/typescript.test.ts
2026-10-07 20:52:06 -08:00

18 lines
669 B
TypeScript

import { promises as fs } from "fs"
import * as path from "path"
import { describe, test } from "./baseFixture"
const args = ["--disable-workspace-trust"]
describe("typescript extension", args, {}, () => {
test("should load as a workspace extension", async ({ codeServerPage }) => {
const dir = await codeServerPage.workspaceDir
const file = path.join(dir, "foo.ts")
await fs.writeFile(file, 'const n: number = "x"')
await codeServerPage.openFile(file)
await codeServerPage.executeCommandViaMenus("Developer: Show Running Extensions")
codeServerPage.page.getByLabel("typescript-language-features").getByText("localhost:").waitFor()
})
})