Skip to content

refactor(worker): move integration, chat and ai-agent handler data access into business #521

refactor(worker): move integration, chat and ai-agent handler data access into business

refactor(worker): move integration, chat and ai-agent handler data access into business #521

Triggered via pull request September 9, 2026 00:51
Status Failure
Total duration 6m 17s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Tests
Process completed with exit code 1.
Tests
command (/home/runner/work/ChatbotX/ChatbotX/apps/worker) /home/runner/setup-pnpm/node_modules/.bin/bin/pnpm run test exited (1)
__tests__/run-ref-referral.test.ts: packages/database/src/queries/contact-filter/exists.ts#L28
Error: [vitest] No "contactInboxModel" export is defined on the "@chatbotx.io/database/schema" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@chatbotx.io/database/schema"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ ../../packages/database/src/queries/contact-filter/exists.ts:28:3 ❯ ../../packages/database/src/queries/contact-filter/bot-field-predicates.ts:3:1
__tests__/run-ref-minigame-share.test.ts: packages/database/src/queries/contact-filter/exists.ts#L28
Error: [vitest] No "contactInboxModel" export is defined on the "@chatbotx.io/database/schema" mock. Did you forget to return it from "vi.mock"? If you need to partially mock a module, you can use "importOriginal" helper inside: vi.mock(import("@chatbotx.io/database/schema"), async (importOriginal) => { const actual = await importOriginal() return { ...actual, // your mocked methods } }) ❯ ../../packages/database/src/queries/contact-filter/exists.ts:28:3 ❯ ../../packages/database/src/queries/contact-filter/bot-field-predicates.ts:3:1