Skip to content

Commit 8af7d02

Browse files
committed
Formatting
1 parent dfe0c7c commit 8af7d02

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

site/e2e/globalSetup.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
1-
import { FullConfig, request } from '@playwright/test';
1+
import { FullConfig, request } from "@playwright/test"
22

33
async function globalSetup(config: FullConfig) {
4-
const { baseURL } = config.projects[0].use;
4+
const { baseURL } = config.projects[0].use
55
console.log(" -- Starting global setup: " + baseURL)
66

77
// Create a context that will issue http requests.
88
const context = await request.newContext({
99
baseURL,
10-
});
10+
})
1111

1212
// Create initial user
13-
await context.post(
14-
"/api/v2/user", {
13+
await context.post("/api/v2/user", {
1514
data: {
1615
email: "admin@coder.com",
1716
username: "admin",
1817
password: "password",
19-
organization: "acme-corp"
20-
}
21-
});
18+
organization: "acme-corp",
19+
},
20+
})
2221

2322
console.log("-- Created initial user.")
2423
}
2524

26-
export default globalSetup;
25+
export default globalSetup

site/e2e/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import { PlaywrightTestConfig } from "@playwright/test"
33

44
const config: PlaywrightTestConfig = {
55
testDir: "tests",
6-
globalSetup: require.resolve('./globalSetup'),
6+
globalSetup: require.resolve("./globalSetup"),
77

88
// Create junit report file for upload to DataDog
9-
reporter: [['junit', { outputFile: 'test-results/junit.xml' }]],
9+
reporter: [["junit", { outputFile: "test-results/junit.xml" }]],
1010

1111
use: {
1212
baseURL: "http://localhost:3000",

0 commit comments

Comments
 (0)