Skip to content

Commit f4d7c0d

Browse files
committed
update import order
1 parent 8fdaf2c commit f4d7c0d

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 * as path from "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
export const wsEndpoint = process.env.CODER_E2E_WS_ENDPOINT;
1515

1616
// This is where auth cookies are stored!
1717
export const storageState = 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-
const terraformExec = execSync('terraform --version')
27-
const dockerExec = execSync('docker --version')
28-
} catch(e) {
29-
throw new Error("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+
throw new Error(
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
const localURL = (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)