Skip to content

Commit 0a125e5

Browse files
chore: generate
1 parent 38d2276 commit 0a125e5

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

packages/app/e2e/backend.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,14 @@ export async function startBackend(label: string): Promise<Handle> {
8585
stdio: ["ignore", "pipe", "pipe"],
8686
},
8787
)
88-
proc.stdout?.on("data", (chunk) => { out.push(String(chunk)); cap(out) })
89-
proc.stderr?.on("data", (chunk) => { err.push(String(chunk)); cap(err) })
88+
proc.stdout?.on("data", (chunk) => {
89+
out.push(String(chunk))
90+
cap(out)
91+
})
92+
proc.stderr?.on("data", (chunk) => {
93+
err.push(String(chunk))
94+
cap(err)
95+
})
9096

9197
const url = `http://127.0.0.1:${port}`
9298
try {

packages/app/e2e/fixtures.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,7 @@ export const test = base.extend<TestFixtures, WorkerFixtures>({
186186
await use(gotoSession)
187187
},
188188
withProject: async ({ page }, use) => {
189-
await use((callback, options) =>
190-
runProject(page, callback, options),
191-
)
189+
await use((callback, options) => runProject(page, callback, options))
192190
},
193191
withBackendProject: async ({ page, backend }, use) => {
194192
await use((callback, options) =>
@@ -241,9 +239,7 @@ async function runProject<T>(
241239
} finally {
242240
setHealthPhase(page, "cleanup")
243241
await Promise.allSettled(
244-
Array.from(sessions, ([sessionID, directory]) =>
245-
cleanupSession({ sessionID, directory, serverUrl: url }),
246-
),
242+
Array.from(sessions, ([sessionID, directory]) => cleanupSession({ sessionID, directory, serverUrl: url })),
247243
)
248244
await Promise.allSettled(Array.from(dirs, (directory) => cleanupTestProject(directory)))
249245
await cleanupTestProject(root)

packages/app/e2e/prompt/prompt-async.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ test("prompt succeeds when sync message endpoint is unreachable", async ({
3838

3939
await expect.poll(() => llm.calls()).toBeGreaterThanOrEqual(1)
4040

41-
await expect
42-
.poll(() => assistantText(project.sdk, sessionID), { timeout: 90_000 })
43-
.toContain(token)
41+
await expect.poll(() => assistantText(project.sdk, sessionID), { timeout: 90_000 }).toContain(token)
4442
},
4543
{
4644
model: openaiModel,

packages/app/e2e/prompt/prompt.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ test("can send a prompt and receive a reply", async ({ page, llm, backend, withB
4040

4141
await expect.poll(() => llm.calls()).toBeGreaterThanOrEqual(1)
4242

43-
await expect
44-
.poll(() => assistantText(project.sdk, sessionID), { timeout: 30_000 })
45-
.toContain(token)
43+
await expect.poll(() => assistantText(project.sdk, sessionID), { timeout: 30_000 }).toContain(token)
4644
},
4745
{
4846
model: openaiModel,

0 commit comments

Comments
 (0)