Skip to content

Commit 8faebff

Browse files
committed
migrate to text based lock file
1 parent b64594b commit 8faebff

3 files changed

Lines changed: 57 additions & 12 deletions

File tree

bun.lock

Lines changed: 49 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bun.lockb

-5.32 KB
Binary file not shown.

example/oob/index.test.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ describe("Multi-stream OOB updates with chunked-transfer", () => {
9696
"#counter-3 .value",
9797
(el) => el.textContent,
9898
);
99-
const statusFinal = await page.$eval(
100-
"#status",
101-
(el) => el.textContent?.trim(),
99+
const statusFinal = await page.$eval("#status", (el) =>
100+
el.textContent?.trim(),
102101
);
103102

104103
console.log("Final counters:", counter1Final, counter2Final, counter3Final);
@@ -118,9 +117,8 @@ describe("Multi-stream OOB updates with chunked-transfer", () => {
118117
// Navigate with fast timing query parameters (150ms intervals for better test timing)
119118
await page.goto("http://localhost:3000?updateInterval=150&chunkDelay=50");
120119

121-
const statusBefore = await page.$eval(
122-
"#status",
123-
(el) => el.textContent?.trim(),
120+
const statusBefore = await page.$eval("#status", (el) =>
121+
el.textContent?.trim(),
124122
);
125123
expect(statusBefore).toBe("Ready to stream");
126124

@@ -130,18 +128,16 @@ describe("Multi-stream OOB updates with chunked-transfer", () => {
130128
// Wait for first status update (sent at t=0)
131129
await new Promise((resolve) => setTimeout(resolve, 100));
132130

133-
const statusDuring = await page.$eval(
134-
"#status",
135-
(el) => el.textContent?.trim(),
131+
const statusDuring = await page.$eval("#status", (el) =>
132+
el.textContent?.trim(),
136133
);
137134
expect(statusDuring).toContain("Streaming update");
138135

139136
// Wait for completion (2 delays of 150ms + final + buffer)
140137
await new Promise((resolve) => setTimeout(resolve, 400));
141138

142-
const statusAfter = await page.$eval(
143-
"#status",
144-
(el) => el.textContent?.trim(),
139+
const statusAfter = await page.$eval("#status", (el) =>
140+
el.textContent?.trim(),
145141
);
146142
expect(statusAfter).toBe("✓ Streaming complete!");
147143
}, 10000);

0 commit comments

Comments
 (0)