Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

test: drop the proxy-level duplicate suite

Karan Lokchandani2d8a339971de
diff --git a/apps/api/src/controllers/v2/research-proxy.test.ts b/apps/api/src/controllers/v2/research-proxy.test.ts
deleted file mode 100644
index a3f324a14..000000000
--- a/apps/api/src/controllers/v2/research-proxy.test.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import {
- DEVELOPER_SEARCH_QUERY_KEYS,
- developerSearchSchema,
-} from "./research-proxy";
-
-describe("developer search upstream contract", () => {
- it("forwards exactly the upstream parameter surface", () => {
- expect(DEVELOPER_SEARCH_QUERY_KEYS).toEqual([
- "query",
- "k",
- "types",
- "repos",
- "sources",
- "passages",
- "language",
- "topic",
- "license",
- "min_stars",
- "max_stars",
- "archived",
- "fork",
- "skills",
- ]);
- });
-
- it("keeps the schema and the forwarded key list in step", () => {
- expect(Object.keys(developerSearchSchema.shape).sort()).toEqual(
- [...DEVELOPER_SEARCH_QUERY_KEYS, "origin", "integration"].sort(),
- );
- });
-
- it("takes skills=only and refuses any other value", () => {
- expect(
- developerSearchSchema.safeParse({ query: "q", skills: "only" }).success,
- ).toBe(true);
- expect(
- developerSearchSchema.safeParse({ query: "q", skills: "true" }).success,
- ).toBe(false);
- expect(
- developerSearchSchema.safeParse({ query: "q", skills: "" }).success,
- ).toBe(false);
- });
-});