Showing the changes to packages/plugins/apps/src/source/github-source.test.ts (1 of 33 files). Show all
Unified · Split
| @@ -2,8 +2,8 @@ import { mkdtempSync } from "node:fs"; · 1 unmodified line | |||
| 2 | import { tmpdir } from "node:os"; | 2 | import { tmpdir } from "node:os"; |
| 3 | import { join } from "node:path"; | 3 | import { join } from "node:path"; |
| 4 | 4 | ||
| 5 | import { describe, expect, it } from "vitest"; | 5 | import { describe, expect, it } from "@effect/vitest"; |
| 6 | import { Effect } from "effect"; | 6 | import { Effect, Exit } from "effect"; |
| 7 | 7 | ||
| 8 | import { makeSelfHostAppsRuntime } from "../plugin/self-host-runtime"; | 8 | import { makeSelfHostAppsRuntime } from "../plugin/self-host-runtime"; |
| 9 | import { makeInMemoryAppsStore, makeTestResolver } from "../testing"; | 9 | import { makeInMemoryAppsStore, makeTestResolver } from "../testing"; |
| @@ -208,7 +208,7 @@ describe("GitHub custom-tools source", () => { · 198 unmodified lines | |||
| 208 | const exit = await Effect.runPromiseExit( | 208 | const exit = await Effect.runPromiseExit( |
| 209 | fetchGitHubSource({ repo: "acme/tools", fetch: github.fetch }), | 209 | fetchGitHubSource({ repo: "acme/tools", fetch: github.fetch }), |
| 210 | ); | 210 | ); |
| 211 | expect(exit._tag).toBe("Failure"); | 211 | expect(Exit.isFailure(exit)).toBe(true); |
| 212 | expect(JSON.stringify(exit)).toContain("exceeding the limit"); | 212 | expect(JSON.stringify(exit)).toContain("exceeding the limit"); |
| 213 | expect(github.blobCalls()).toBe(0); | 213 | expect(github.blobCalls()).toBe(0); |
| 214 | }); | 214 | }); |