Skip to content

Commit 3dbc640

Browse files
shixishclaude
andcommitted
Add tests for kg, nlp, web-search, and ask modules
Cover the DQL/knowledge-graph code paths (dql params, raw output, parallel fan-out, ontology refresh) plus the previously untested option branches in entities(), webSearch(), and the ask() streaming/error/text-fallback paths. Raises overall coverage from ~76% to ~83% statements. Adds @vitest/coverage-v8 and a test:coverage script. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent a473aa3 commit 3dbc640

6 files changed

Lines changed: 732 additions & 0 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
"test": "vitest run",
2727
"test:watch": "vitest",
2828
"test:live": "vitest run --config vitest.live.config.ts",
29+
"test:coverage": "vitest run --coverage --coverage.include='src/**'",
2930
"typecheck": "tsc --noEmit"
3031
},
3132
"keywords": [
@@ -41,6 +42,7 @@
4142
"license": "MIT",
4243
"devDependencies": {
4344
"@types/node": "^22.15.21",
45+
"@vitest/coverage-v8": "^3.2.6",
4446
"tsup": "^8.5.0",
4547
"typescript": "^5.8.3",
4648
"vitest": "^3.2.1"

0 commit comments

Comments
 (0)