mirror of https://github.com/coder/code-server.git
Use machine settings for e2e tests
User settings are browser-based so use machine settings instead.
This commit is contained in:
parent
09dd5fe44d
commit
9ba66ec468
|
@ -77,9 +77,9 @@ export class CodeServer {
|
||||||
*/
|
*/
|
||||||
private async createWorkspace(): Promise<string> {
|
private async createWorkspace(): Promise<string> {
|
||||||
const dir = await this.workspaceDir
|
const dir = await this.workspaceDir
|
||||||
await fs.mkdir(path.join(dir, "User"), { recursive: true })
|
await fs.mkdir(path.join(dir, "Machine"), { recursive: true })
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
path.join(dir, "User/settings.json"),
|
path.join(dir, "Machine/settings.json"),
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
"workbench.startupEditor": "none",
|
"workbench.startupEditor": "none",
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Reference in New Issue