Skip to content

Commit 9fc0f7d

Browse files
committed
Prepare 0.4.0 release
1 parent 064bc58 commit 9fc0f7d

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hunkdiff",
3-
"version": "0.3.0",
3+
"version": "0.4.0",
44
"description": "Desktop-inspired terminal diff viewer for understanding agent-authored changesets.",
55
"type": "module",
66
"packageManager": "bun@1.3.10",

test/app-interactions.test.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,25 +345,32 @@ describe("App interactions", () => {
345345
expect(initialFrame).toContain("line01 = 101");
346346
expect(initialFrame).not.toContain("line08 = 108");
347347

348-
for (let index = 0; index < 6; index += 1) {
348+
let frame = initialFrame;
349+
for (let index = 0; index < 12; index += 1) {
349350
await act(async () => {
350351
await setup.mockInput.pressArrow("down");
351352
});
352353
await flush(setup);
354+
frame = setup.captureCharFrame();
355+
if (frame.includes("line08 = 108")) {
356+
break;
357+
}
353358
}
354359

355-
let frame = setup.captureCharFrame();
356360
expect(frame).toContain("line08 = 108");
357361
expect(frame).not.toContain("line01 = 101");
358362

359-
for (let index = 0; index < 6; index += 1) {
363+
for (let index = 0; index < 12; index += 1) {
360364
await act(async () => {
361365
await setup.mockInput.pressArrow("up");
362366
});
363367
await flush(setup);
368+
frame = setup.captureCharFrame();
369+
if (frame.includes("line01 = 101")) {
370+
break;
371+
}
364372
}
365373

366-
frame = setup.captureCharFrame();
367374
expect(frame).toContain("line01 = 101");
368375
} finally {
369376
await act(async () => {

test/ui-components.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,8 +522,8 @@ describe("UI components", () => {
522522

523523
expect(frame).toContain("1 - export const message = 'short';");
524524
expect(frame).toContain("1 + export const message = 'this is a very l");
525-
expect(frame).toContain("ong wrapped line for diff rendering cove");
526-
expect(frame).toContain("rage';");
525+
expect(frame).toContain("ong wrapped line for");
526+
expect(frame).toContain("erage';");
527527
});
528528

529529
test("PierreDiffView anchors range-less notes to the first visible row when hunk headers are hidden", async () => {

0 commit comments

Comments
 (0)