Files
ui/pkg/crm/vitest.config.ts
c1c6e11018 @hanzo/crm 0.1.0: the CRM, one for every app that has one (#323)
* @hanzo/crm 0.1.0: the CRM, one for every app that has one

Hanzo Cloud console's CRM (crm.hanzo.ai, console.hanzo.ai/crm), moved out of
hanzoai/console unchanged so Hanzo Team draws the same screens over the same
records. The moved files differ from console's only in their imports, which
point at lib/host: the request signing, org, session, router, brand and crm
face an app supplies once through configureCrm. Adds baseClient (also at
@hanzo/crm/base), a Base client over any JSON transport for an app with none of
its own, and CRM_PAGES for a host's navigation. 89 tests.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* @hanzo/crm: the suppression test's account carries only what the CRM reads

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-16 21:35:20 -08:00

14 lines
398 B
TypeScript

import { defineConfig } from 'vitest/config'
/**
* The CRM's logic, in plain Node: Base's field and value mapping, the view
* queries, CSV and import plans, the objects and their starter views, and the
* mail and suppression reads over a host's REST. No suite here mounts a screen.
*/
export default defineConfig({
test: {
environment: 'node',
include: ['src/**/*.test.ts'],
},
})