Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4407314

Browse files
committed
update import order
1 parentbe633ee commit4407314

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

‎site/e2e/playwright.config.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,40 @@
11
import{defineConfig}from"@playwright/test";
2+
import{execSync}from"child_process";
23
import*aspathfrom"path";
34
import{
45
coderMain,
56
coderPort,
67
coderdPProfPort,
78
e2eFakeExperiment1,
89
e2eFakeExperiment2,
9-
gitAuth,requireTerraformTests,
10+
gitAuth,
11+
requireTerraformTests,
1012
}from"./constants";
11-
import{execSync}from"child_process";
12-
import{requiresTerraform}from"./helpers";
1313

1414
exportconstwsEndpoint=process.env.CODER_E2E_WS_ENDPOINT;
1515

1616
// This is where auth cookies are stored!
1717
exportconststorageState=path.join(__dirname,".auth.json");
1818

19-
if(requireTerraformTests){
19+
if(requireTerraformTests){
2020
try{
2121
// If running terraform tests, verify the requirements exist in the
2222
// environment.
2323
//
2424
// These execs will throw an error if the status code is non-zero.
2525
// So if both these work, then we can launch terraform provisioners.
26-
constterraformExec=execSync('terraform --version')
27-
constdockerExec=execSync('docker --version')
28-
}catch(e){
29-
thrownewError("Terraform provisioners require docker & terraform. "+
30-
"At least one of these is not present in the runtime environment. To check yourself:\n"+
31-
"\t$ terraform --version\n"+
32-
"\t$ docker --version")
26+
execSync("terraform --version");
27+
execSync("docker --version");
28+
}catch(e){
29+
thrownewError(
30+
"Terraform provisioners require docker & terraform. "+
31+
"At least one of these is not present in the runtime environment. To check yourself:\n"+
32+
"\t$ terraform --version\n"+
33+
"\t$ docker --version",
34+
);
3335
}
3436
}
3537

36-
3738
constlocalURL=(port:number,path:string):string=>{
3839
return`http://localhost:${port}${path}`;
3940
};
@@ -80,7 +81,7 @@ export default defineConfig({
8081
"--dangerous-disable-rate-limits",
8182
"--provisioner-daemons 10",
8283
// TODO: Enable some terraform provisioners
83-
`--provisioner-types=echo${requireTerraformTests ?",terraform":""}`,
84+
`--provisioner-types=echo${requireTerraformTests ?",terraform":""}`,
8485
`--provisioner-daemons=10`,
8586
"--web-terminal-renderer=dom",
8687
"--pprof-enable",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp