• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lsm / neokai / 22803030110
84%

Build:
DEFAULT BRANCH: dev
Ran 07 Mar 2026 04:48PM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
  cancel
22803030110

push

github

web-flow
feat(test): add mock SDK support for online tests (#219)

* feat(test): add script-based mock SDK system for declarative response scripting

Adds a new script-based mock system that allows tests to define mock SDK
responses declaratively using a simple DSL:

- Timing delays: `100ms`
- Built-in messages: `builtin:system:init`, `builtin:result`, `builtin:error`
- Custom JSON: `{"type": "assistant", ...}`
- Environment variable lookup: `ENV_VAR_NAME`
- Multi-turn support: Use `---` to separate turns

Includes MockScripts helper class with common patterns (simpleText, multiTurn,
toolUse, error, rateLimit) and unit tests for the parser.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test: add mock SDK support to online tests for faster offline testing

Updates online tests to support both real API and mock SDK modes:

- Add IS_MOCK detection via NEOKAI_AGENT_SDK_MOCK environment variable
- Adjust timeouts dynamically (faster when mocked)
- Update model selection for mock mode (short aliases work with mock)
- Reformat with biome for consistent style

Tests can now run offline with:
  NEOKAI_AGENT_SDK_MOCK=1 bun test packages/daemon/tests/online/

Affected test files:
- agent/agent-session-sdk.test.ts
- convo/multiturn-conversation.test.ts
- features/message-delivery-mode-queue.test.ts
- features/message-persistence.test.ts
- lifecycle/session-resume.test.ts
- rewind/rewind-feature.test.ts
- rewind/selective-rewind.test.ts
- sdk/sdk-streaming-failures.test.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* test(room): add mock SDK support to room-chat-constraints test

Updates room-chat-constraints.test.ts to support both real API and mock
SDK modes for faster offline testing.

- Add IS_MOCK detection via NEOKAI_AGENT_SDK_MOCK environment variable
- Adjust timeouts dynamically (faster when mocked)
- Use mockControls.setDefaultResponses() to set expected response
- Test runs in ~2.5s with mock vs ~180s with real API

Run with mock:
  ... (continued)
Source Files on build 22803030110
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #22803030110
  • f609ef61 on github
  • Prev Build on dev (#22802932597)
  • Next Build on dev (#22803889463)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc