Files
ui/pkgs/gitops/vitest.config.ts
zeekay 0e1ddbef28 gitops: scaffold @hanzo/gitops package (Apache-2.0 port of argo-cd UI)
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.
2026-07-14 15:56:36 -07:00

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'],
},
})