fix(frontend): spec 文件 mountDetail 参数类型修正——vue-tsc -b 与 CI 对齐 [vps]
CI/CD / test (push) Successful in 39s
CI/CD / nas-deploy (push) Successful in 30s
CI/CD / nas-verify (push) Successful in 8s

This commit is contained in:
2026-10-09 20:30:20 +08:00
parent 9475836c38
commit 1e84b07d42
@@ -32,7 +32,7 @@ const DETAIL = {
rounds: 3, hypId: 'hyp-1' },
}
async function mountDetail(override: object | undefined = undefined) {
async function mountDetail(override?: Awaited<ReturnType<typeof api.getFactorDetail>>) {
vi.mocked(api.getFactorDetail).mockResolvedValue(
override ?? (DETAIL as Awaited<ReturnType<typeof api.getFactorDetail>>))
vi.mocked(api.getIcTrend).mockRejectedValue(new Error('no data'))