Skip to content

Commit

Permalink
Merge branch 'startDevWorker-milestone-2-local' into remote-runtime-c…
Browse files Browse the repository at this point in the history
…ontroller
  • Loading branch information
penalosa committed May 29, 2024
2 parents 0842071 + be715bd commit 10a9495
Show file tree
Hide file tree
Showing 22 changed files with 1,483 additions and 121 deletions.
4 changes: 4 additions & 0 deletions packages/wrangler/src/__tests__/ai.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ describe("ai commands", () => {
});

it("should paginate results", async () => {
const original = process.stdout.columns;
// Arbitrary fixed value for testing
process.stdout.columns = 186;
mockAIPaginatedRequest();
await runWrangler("ai models");
expect(std.out).toMatchInlineSnapshot(`
Expand Down Expand Up @@ -247,6 +250,7 @@ describe("ai commands", () => {
│ 7f9a76e1-d120-48dd-a565-101d328bbb02 │ @cloudflare/resnet50 │ second page │ Image Classification │
└──────────────────────────────────────┴─────────────────────────────────────┴─────────────┴──────────────────────┘"
`);
process.stdout.columns = original;
});
});

Expand Down
Loading

0 comments on commit 10a9495

Please sign in to comment.