History

Make custom tools lint clean

Rhys Sullivan committed 4 months ago

Commit f754da51 parent 2a35fef33 files · +681 −549Browse files

Showing the changes to packages/plugins/apps/src/source/github-source.test.ts (1 of 33 files). Show all

Unified · Split

packages/plugins/apps/src/source/github-source.test.ts+3−3
@@ -2,8 +2,8 @@ import { mkdtempSync } from "node:fs"; · 1 unmodified line
2import { tmpdir } from "node:os";2import { tmpdir } from "node:os";
3import { join } from "node:path";3import { join } from "node:path";
4 4
5import { describe, expect, it } from "vitest";5import { describe, expect, it } from "@effect/vitest";
6import { Effect } from "effect";6import { Effect, Exit } from "effect";
7 7
8import { makeSelfHostAppsRuntime } from "../plugin/self-host-runtime";8import { makeSelfHostAppsRuntime } from "../plugin/self-host-runtime";
9import { makeInMemoryAppsStore, makeTestResolver } from "../testing";9import { 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 });