Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
fix(web): resolve TS errors in Hero.test.tsx and vitest.config.ts
Beenu Aroraed4802353eb6
diff --git a/apps/web/src/components/landing/Hero.test.tsx b/apps/web/src/components/landing/Hero.test.tsxindex ca4d249af..4ef4b5a37 100644--- a/apps/web/src/components/landing/Hero.test.tsx+++ b/apps/web/src/components/landing/Hero.test.tsx@@ -12,7 +12,7 @@ vi.mock('next/link', () => ({// in a unit test. The "motion." factory is just a thin wrapper here — render// the underlying tag.vi.mock('framer-motion', () => {- const factory = (Tag: keyof JSX.IntrinsicElements) =>+ const factory = (Tag: React.ElementType) =>function MotionStub(props: Record<string, unknown>) {const { children, ...rest } = props as {children?: React.ReactNode;@@ -26,7 +26,7 @@ vi.mock('framer-motion', () => {return <Tag {...(rest as Record<string, unknown>)}>{children}</Tag>;};return {- motion: new Proxy({}, { get: (_t, key: string) => factory(key as keyof JSX.IntrinsicElements) }),+ motion: new Proxy({}, { get: (_t, key: string) => factory(key as React.ElementType) }),};});diff --git a/apps/web/vitest.config.ts b/apps/web/vitest.config.tsindex f53a479b6..b8ab6a703 100644--- a/apps/web/vitest.config.ts+++ b/apps/web/vitest.config.ts@@ -6,7 +6,9 @@ import path from 'node:path';// (jsdom) — no SSR, no Next.js server runtime. Anything that requires the// full Next.js stack should live in an e2e suite (Playwright) instead.export default defineConfig({- plugins: [react()],+ // react() returns vite@7 Plugin types; vitest@2 expects vite@5 Plugin types.+ // Cast through unknown to bridge the version gap without changing the runtime.+ plugins: [react() as unknown as import('vitest/config').UserConfig['plugins']],test: {environment: 'jsdom',globals: true,