aboutsummaryrefslogtreecommitdiff
path: root/test/deep-research
diff options
context:
space:
mode:
Diffstat (limited to 'test/deep-research')
-rw-r--r--test/deep-research/agent-config-test.ts9
-rw-r--r--test/deep-research/readability-test.ts7
-rw-r--r--test/deep-research/serp-parser-test.ts8
3 files changed, 0 insertions, 24 deletions
diff --git a/test/deep-research/agent-config-test.ts b/test/deep-research/agent-config-test.ts
index 5859060..025a844 100644
--- a/test/deep-research/agent-config-test.ts
+++ b/test/deep-research/agent-config-test.ts
@@ -1,12 +1,3 @@
-/**
- * S20: the web-search-researcher subagent config references only real tools.
- *
- * Guards against the pre-Phase-3 regression where the agent named the
- * non-existent web_search / web_fetch tools. Pure string checks over the
- * markdown file — no browser, no subagent runtime.
- *
- * Run: npm test
- */
import { test, before, describe } from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
diff --git a/test/deep-research/readability-test.ts b/test/deep-research/readability-test.ts
index ba0e0e0..211229d 100644
--- a/test/deep-research/readability-test.ts
+++ b/test/deep-research/readability-test.ts
@@ -1,8 +1,3 @@
-/**
- * Unit tests for the pure readability extractor — no browser required.
- *
- * Run: npm test
- */
import { test, describe } from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
@@ -13,7 +8,6 @@ const fixture = (name: string): PageCapture =>
JSON.parse(readFileSync(join(import.meta.dirname, "fixtures", name), "utf8")) as PageCapture;
describe("pure readability extractor", () => {
- // S10: boilerplate stripped, article content preserved
test("S10: article body text is present", () => {
const page = extractReadable(fixture("article-capture.json"));
assert.ok(page.text.includes("Chrome DevTools Protocol lets tools instrument"));
@@ -54,7 +48,6 @@ describe("pure readability extractor", () => {
assert.ok(page.wordCount > 40);
});
- // S11: no clear article node falls back to bounded body text
test("S11: structure-less page falls back to non-empty body text", () => {
const page = extractReadable(fixture("no-article-capture.json"));
assert.ok(page.text.length > 0);
diff --git a/test/deep-research/serp-parser-test.ts b/test/deep-research/serp-parser-test.ts
index af5ac54..433c650 100644
--- a/test/deep-research/serp-parser-test.ts
+++ b/test/deep-research/serp-parser-test.ts
@@ -1,8 +1,3 @@
-/**
- * Unit tests for the pure Google SERP parser — no browser required.
- *
- * Run: npm test
- */
import { test, describe } from "node:test";
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
@@ -17,7 +12,6 @@ const captcha = fixture("google-serp-captcha.json");
const empty = fixture("google-serp-empty.json");
describe("pure Google SERP parser", () => {
- // S1: redirect unwrapping + internal/javascript anchors dropped
test("S1: /url?q= redirect is unwrapped to the real target", () => {
const results = parseGoogleSerp(ok.anchors, 10);
const urls = results.map((r) => r.url);
@@ -36,7 +30,6 @@ describe("pure Google SERP parser", () => {
assert.ok(!urls.some((u) => u.startsWith("javascript:")));
});
- // S2: dedupe + rank + limit
test("S2: trailing-slash duplicate collapses to one result", () => {
const results = parseGoogleSerp(ok.anchors, 10);
const realExampleCount = results.filter((r) => r.url.startsWith("https://real.example/x")).length;
@@ -53,7 +46,6 @@ describe("pure Google SERP parser", () => {
assert.ok(capped.length === 2 && capped[capped.length - 1]?.rank === 2);
});
- // S3: CAPTCHA / no-results classification
test("S3: populated SERP classifies as ok", () => {
assert.equal(classifySerp(ok.pageText, parseGoogleSerp(ok.anchors, 10).length), "ok");
});