Skip to content

Commit 897eb7f

Browse files
committed
test(server): run httpapi exercise effect mode in test:httpapi
The test:httpapi script previously ran only coverage and auth modes, which check route inventory and per-route auth declarations but never exercise the routes themselves. The exerciser already supports --mode effect, which dispatches a real request through the new HTTP API stack for every route in the inventory and verifies a sane response. Append the effect mode to test:httpapi so the full route surface gets exercised before merge. Today's run reports pass=139 fail=0.
1 parent c931995 commit 897eb7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"typecheck": "tsgo --noEmit",
1010
"test": "bun test --timeout 30000",
1111
"test:ci": "mkdir -p .artifacts/unit && bun test --timeout 30000 --reporter=junit --reporter-outfile=.artifacts/unit/junit.xml",
12-
"test:httpapi": "bun run script/httpapi-exercise.ts --mode coverage --fail-on-missing --fail-on-skip && bun run script/httpapi-exercise.ts --mode auth --fail-on-missing --fail-on-skip",
12+
"test:httpapi": "bun run script/httpapi-exercise.ts --mode coverage --fail-on-missing --fail-on-skip && bun run script/httpapi-exercise.ts --mode auth --fail-on-missing --fail-on-skip && bun run script/httpapi-exercise.ts --mode effect --fail-on-missing --fail-on-skip",
1313
"build": "bun run script/build.ts",
1414
"fix-node-pty": "bun run script/fix-node-pty.ts",
1515
"dev": "bun run --conditions=browser ./src/index.ts",

0 commit comments

Comments
 (0)