mirror of
https://github.com/coder/code-server.git
synced 2026-10-25 18:50:27 +08:00
* Update Code to 1.141.0 * Allow pull_request_target * Add e2e tests for remote storage * Fix Typescript extension not loading * Remove unused imports
20 lines
711 B
TypeScript
20 lines
711 B
TypeScript
import { promises as fs } from "fs"
|
|
import * as path from "path"
|
|
import { describe, test, expect } 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")
|
|
await expect(
|
|
codeServerPage.page.getByLabel("typescript-language-features").getByText(/localhost:\d+/),
|
|
).toBeVisible()
|
|
})
|
|
})
|