mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-21 00:18:41 +00:00
Presentational, data-prop-driven CD/GitOps React surface. tsup build + vitest, mirrors pkgs/canvas + pkgs/capture conventions. Reuses @hanzo/canvas/pure (layoutGraph) for resource-tree topology; no separate graph dependency. Attribution to argoproj/argo-cd in NOTICE.
17 lines
508 B
TypeScript
17 lines
508 B
TypeScript
import { fileURLToPath } from 'node:url'
|
|
import { defineConfig } from 'vitest/config'
|
|
|
|
export default defineConfig({
|
|
resolve: {
|
|
alias: {
|
|
'@hanzo/canvas/pure': fileURLToPath(new URL('../canvas/src/pure.ts', import.meta.url)),
|
|
},
|
|
},
|
|
test: {
|
|
// happy-dom for the presentational render tests; pure folds are DOM-free but
|
|
// run fine under it too, so one environment covers the whole suite.
|
|
environment: 'happy-dom',
|
|
include: ['src/**/*.test.ts', 'src/**/*.test.tsx'],
|
|
},
|
|
})
|