c670b9e454
- 确定性领域引擎(分类/评分/分级/红线/费用/裁决)+LLM(通义千问)语言理解 - 6步评估向导、服务端草稿持久化(跨设备/编辑草稿保护) - 工作流(草稿→风控→管理层)、RBAC、报告导出、校准、客户/费率/红线/最低工资管理 - 专业图标体系替换全部emoji、看板美化 - 生产化:API_BASE可配置(同源反代)、auth密钥惰性读取修复RBAC - 444单测+204前端测试+51 e2e
20 lines
752 B
TypeScript
20 lines
752 B
TypeScript
/**
|
|
* Type augmentation registering the vitest-axe `toHaveNoViolations` matcher on
|
|
* Vitest's `expect`. vitest-axe 0.1.0 only augments the legacy `Vi` namespace,
|
|
* which Vitest 2.x no longer maps onto `expect`, so we declare it against the
|
|
* `vitest` module directly. The matcher itself is registered at runtime in
|
|
* web/src/__tests__/setup.ts via `expect.extend`.
|
|
*/
|
|
import 'vitest';
|
|
|
|
interface AxeMatchers<R = unknown> {
|
|
toHaveNoViolations(): R;
|
|
}
|
|
|
|
declare module 'vitest' {
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
interface Assertion<T = unknown> extends AxeMatchers<T> {}
|
|
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
interface AsymmetricMatchersContaining extends AxeMatchers {}
|
|
}
|