Skip to content

armgit / AiSOC

Public Imported from GitHub
0

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.

677 B
Raw Blame
// Type augmentation for `vitest-axe`'s `toHaveNoViolations` matcher.
//
// `[email protected]` ships its global type augmentation against the legacy
// `Vi.Assertion` namespace, which Vitest 2.x has retired in favor of the
// `Assertion` interface exported from `'vitest'`. As a result `tsc` doesn't
// see our `expect.extend({ toHaveNoViolations })` registration even though
// it works at runtime. This declaration file plugs the gap by augmenting
// the modern interface directly. WS-F2.

import 'vitest';

declare module 'vitest' {
  interface Assertion {
    toHaveNoViolations(): void;
  }
  interface AsymmetricMatchersContaining {
    toHaveNoViolations(): void;
  }
}