Files
iios/vitest.config.ts
T
maaz519 c73acce0e8 ci: import-boundary law + CI workflow (P0 complete)
Boundary script enforces contracts<testkit<service (catches from/side-effect/
dynamic/require imports); wired into pnpm test + CI. CI: install --frozen-lockfile
-> boundary -> typecheck -> build -> test.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-30 21:09:37 +05:30

19 lines
626 B
TypeScript

import { defineConfig } from 'vitest/config';
import { fileURLToPath } from 'node:url';
const r = (p: string) => fileURLToPath(new URL(p, import.meta.url));
export default defineConfig({
resolve: {
alias: {
// Resolve workspace packages to their TS source so tests run without a
// build step. Production builds still go through tsc/dist.
'@insignia/iios-contracts': r('./packages/iios-contracts/src/index.ts'),
'@insignia/iios-testkit': r('./packages/iios-testkit/src/index.ts'),
},
},
test: {
include: ['packages/**/src/**/*.{test,spec}.ts', 'test/**/*.{test,spec}.ts'],
},
});