Skip to content

Commit a0f8a3f

Browse files
committed
test: embed and rerank clients against a local HTTP server
The clients now send real requests to a Bun.serve stub instead of a mocked fetch, so each test checks the wire shape, headers and body the endpoint actually receives. The rerank config validation tests move with them.
1 parent e2ece62 commit a0f8a3f

6 files changed

Lines changed: 420 additions & 597 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"build": "tsc -p tsconfig.build.json",
6363
"prepack": "npm run build",
6464
"test": "bun test ./src ./tests",
65-
"test:coverage": "bun test --coverage --coverage-reporter=lcov --coverage-reporter=text ./src"
65+
"test:coverage": "bun test --coverage --coverage-reporter=lcov --coverage-reporter=text ./src ./tests"
6666
},
6767
"dependencies": {
6868
"arktype": "^2.1.29"

‎src/core/embed-client.test.ts‎

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)