1092 lines
104 KiB
Plaintext
1092 lines
104 KiB
Plaintext
bun test v1.3.14 (0d9b296a)
|
||
==> Bumping version: 1.0.0 -> 1.0.1
|
||
✓ Updated package.json
|
||
✓ Updated README.md
|
||
✓ Updated skills/hose-use/SKILL.md
|
||
✓ Updated specs/openapi/openapi.yaml
|
||
✓ Updated .zcode-plugin/plugin.json
|
||
==> Rebuilding OpenAPI and plugin bundles...
|
||
|
||
🎉 Successfully bumped version to 1.0.1!
|
||
|
||
Next steps to publish:
|
||
1. Review the diff, then run bun test && bun run check && bun run check:version
|
||
2. Commit on release/v1.0.1, push that branch and open a PR to main
|
||
3. Wait for CI and review, then merge the PR
|
||
4. Switch to main; git pull --ff-only origin main; git push home main
|
||
5. Create annotated tag v1.0.1 on the merged release commit
|
||
6. git push home refs/tags/v1.0.1 (first), then git push origin refs/tags/v1.0.1
|
||
7. Verify the Release build, binary archives and checksums on both sources
|
||
Optional: bun run dev:override to explicitly sync your global development binary and Skill
|
||
|
||
scripts/plugin-review-smoke.test.ts:
|
||
(pass) source and committed plugin preserve offline review execution contracts [653.94ms]
|
||
|
||
scripts/dev-override.test.ts:
|
||
(pass) dev:override > parses dry-run and explicit target path without touching the host [0.04ms]
|
||
(pass) dev:override > uses stable global binary locations [0.06ms]
|
||
|
||
scripts/install.test.ts:
|
||
(pass) verified standalone installer > installs a platform-named archive and alias, then explicitly confirms Skill setup [1363.75ms]
|
||
(pass) verified standalone installer > rejects an invalid manifest/archive and preserves the old binary: {"badHash":true} [412.57ms]
|
||
(pass) verified standalone installer > rejects an invalid manifest/archive and preserves the old binary: {"missingEntry":true} [455.58ms]
|
||
(pass) verified standalone installer > rejects an invalid manifest/archive and preserves the old binary: {"duplicate":true} [370.01ms]
|
||
(pass) verified standalone installer > does not silently bypass missing checksums or guess an old tag [333.55ms]
|
||
(pass) verified standalone installer > uses a verified raw fallback and a fixed tag when the first mirror fails [511.76ms]
|
||
(pass) verified standalone installer > reports Skill failure without claiming it was installed [472.99ms]
|
||
(pass) verified standalone installer > does not replace directories or follow an existing alias into a directory [508.73ms]
|
||
|
||
scripts/dev-hygiene.test.ts:
|
||
(pass) dev hygiene tooling > only accepts development-scoped modes and confirmation flags [0.07ms]
|
||
(pass) dev hygiene tooling > uses semantic exit codes for clean, warning, and blocked states [0.04ms]
|
||
(pass) dev hygiene tooling > accepts a development build based on the current stable version [0.03ms]
|
||
(pass) dev hygiene tooling > only plans deletion for clean merged worktrees and local branches [0.16ms]
|
||
|
||
scripts/release-validation.test.ts:
|
||
(pass) release preparation and publication guards > bump rejects wrong branches, dirty trees and invalid/non-increasing versions before writes [66.90ms]
|
||
(pass) release preparation and publication guards > bump updates sources on its release branch and explicitly invokes regeneration [61.18ms]
|
||
(pass) release preparation and publication guards > an existing release tag cannot be reused during bump [59.25ms]
|
||
(pass) release preparation and publication guards > publication validates the actual HEAD, main ancestry and package version [102.64ms]
|
||
(pass) release preparation and publication guards > workflows validate committed versions before generation and ship the checksum manifest [5.59ms]
|
||
(pass) release preparation and publication guards > a failed background Gitea upload makes the Release step fail [484.69ms]
|
||
(pass) release preparation and publication guards > transient asset upload failures are retried [474.09ms]
|
||
(pass) release preparation and publication guards > correct mirror assets are verified and retained without uploading replacements [224.03ms]
|
||
(pass) release preparation and publication guards > mirror-only recovery downloads and verifies the existing GitHub assets [623.93ms]
|
||
(pass) release preparation and publication guards > asset transfers never exceed two concurrent workers [742.12ms]
|
||
|
||
src/aipro-cli.test.ts:
|
||
(pass) CLI - hose-aipro 审批流与网关阻拦全链路测试 > version/help --json only emit machine-readable stdout [5.69ms]
|
||
(pass) CLI - hose-aipro 审批流与网关阻拦全链路测试 > 完整闭环:bind 挂载 ➔ review 证据核验 ➔ decide 网关阻拦与裁决 ➔ logs 审计追溯 [2.43ms]
|
||
(pass) CLI - hose-aipro 审批流与网关阻拦全链路测试 > 门禁防御:单据无硬性或弹性违规时,尝试执行 reject 必须被网关阻断(禁止无因驳回) [0.82ms]
|
||
|
||
src/version.test.ts:
|
||
(pass) build version metadata > parses tagged commits and dirty state [0.35ms]
|
||
(pass) build version metadata > formats a visible semver development version [0.02ms]
|
||
(pass) build version metadata > uses compile-time release metadata when a binary provides it [0.02ms]
|
||
(pass) build version metadata > includes git metadata in development mode [0.02ms]
|
||
|
||
src/server.test.ts:
|
||
(pass) hose-use MCP server & hose_cli single-gate pattern > tokenizes complex CLI arguments with quotes and JSON payloads [0.07ms]
|
||
(pass) hose-use MCP server & hose_cli single-gate pattern > normalizes CLI prefix binary names [0.03ms]
|
||
(pass) hose-use MCP server & hose_cli single-gate pattern > resolves HOSE_MCP_MODE to single gateway mode [0.01ms]
|
||
(pass) hose-use MCP server & hose_cli single-gate pattern > advertises only hose_cli and executes commands in-process [11.73ms]
|
||
(pass) hose-use MCP server & hose_cli single-gate pattern > returns empty tools when MCP is disabled via configuration [0.45ms]
|
||
|
||
src/packaging/embedded-skill.test.ts:
|
||
(pass) embedded-skill - 多文件内嵌 Skill 体系 > 全局 Skill 目录固定为 ~/.agents/skills/hose-use [0.02ms]
|
||
(pass) embedded-skill - 多文件内嵌 Skill 体系 > 正确内嵌 SKILL.md、agents/openai.yaml 及各领域参考专卷 [0.39ms]
|
||
(pass) embedded-skill - 多文件内嵌 Skill 体系 > installSkillFiles 递归保留层级结构并落盘到目标目录 [3.58ms]
|
||
|
||
src/packaging/embedded-openapi.test.ts:
|
||
(pass) embedded OpenAPI > wrapped OpenAPI contains paths and components [0.23ms]
|
||
(pass) embedded OpenAPI > raw downstream OpenAPI contains downstream paths [0.04ms]
|
||
|
||
src/cli/approval-dry-run.test.ts:
|
||
(pass) approval and aipro dry-runs override apply/yes without requests or database creation [2.59ms]
|
||
|
||
src/cli/mutation-boundaries.test.ts:
|
||
(pass) CLI mutation boundaries > auth login dry-run does not prompt or call the login API [0.23ms]
|
||
(pass) CLI mutation boundaries > corps/config state changes share the dry-run protocol [0.11ms]
|
||
(pass) CLI mutation boundaries > skill installation and message read never write during dry-run [0.32ms]
|
||
|
||
src/cli/parser.test.ts:
|
||
(pass) strict command options > rejects misspellings and missing values instead of silently dropping filters [2.53ms]
|
||
(pass) strict command options > uses command-specific boolean and value options without swallowing IDs [0.31ms]
|
||
(pass) strict command options > preserves explicit booleans, aliases, negative values, and -- boundaries [0.10ms]
|
||
(pass) strict command options > AI PRO returns structured parse failures before opening its repository [0.47ms]
|
||
(pass) strict command options > all command domains, aliases and declared flags have usable help [3.26ms]
|
||
(pass) strict command options > handler option declarations cannot drift outside the shared flag vocabulary [59.74ms]
|
||
|
||
src/cli/service.test.ts:
|
||
(pass) cli/service - 守护进程状态与自愈管理 > 服务未运行时返回 running: false 并生成规范状态对象 [1.09ms]
|
||
(pass) cli/service - 守护进程状态与自愈管理 > 发现失效的孤儿 PID 时自动自愈清理 pidFile [0.55ms]
|
||
(pass) cli/service - 守护进程状态与自愈管理 > isHoseServiceProcess 正确识别非 hose 进程 [3.20ms]
|
||
(pass) cli/service - 守护进程状态与自愈管理 > 路径辅助函数返回规范的子路径 [0.28ms]
|
||
|
||
src/cli/printer.test.ts:
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > redactSensitiveText 脱敏处理 > 脱敏 URL Query 中的 accessToken / token / returnToken [0.03ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > redactSensitiveText 脱敏处理 > 脱敏对象存储签名 URL 中的临时凭证 [0.01ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > redactSensitiveText 脱敏处理 > 脱敏 Authorization Bearer token
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > redactSensitiveText 脱敏处理 > 脱敏 password、secret、appSecurity 等键值 [0.06ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > redactSensitiveText 脱敏处理 > 保留 JSON 中的业务布尔标记与空值,凭据仍脱敏 [0.04ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > redactSensitiveText 脱敏处理 > 结构化脱敏保留单行 NDJSON 和字符串转义 [0.04ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > protectLargeOutput 与 printJson 体积熔断保护 > 正常体积的数据可以直接输出 JSON [0.36ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > protectLargeOutput 与 printJson 体积熔断保护 > 超过 200KB 的巨型数据默认抛出熔断错误 [1.13ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > protectLargeOutput 与 printJson 体积熔断保护 > 显式指定 allowFull 时允许全量输出大报文 [0.79ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > protectLargeOutput 与 printJson 体积熔断保护 > 指定 outputFile 时大报文直接落盘并返回精简摘要 [1.49ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatSourceLabel 4大凭证类别规范格式化 > 企业开放接口 (OpenAPI 密钥) [0.04ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatSourceLabel 4大凭证类别规范格式化 > 个人账号凭证 (手机号)
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatSourceLabel 4大凭证类别规范格式化 > 合思协助平台授权链接 (协助链接)
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatSourceLabel 4大凭证类别规范格式化 > 网页临时抓包凭证 (Cookie)
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatSourceLabel 4大凭证类别规范格式化 > 兜底处理
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatExpiresAt 过期状态精准描述 > 长期有效凭据 [0.05ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatExpiresAt 过期状态精准描述 > 已过期但具备自动续期能力的凭据 [1.07ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatExpiresAt 过期状态精准描述 > 已过期且不可续期的凭据精准告警 [0.07ms]
|
||
(pass) cli/printer - 上下文防爆与敏感脱敏 > formatExpiresAt 过期状态精准描述 > 未来有效期的剩余提示 [0.05ms]
|
||
|
||
src/cli/assist-session-regression.test.ts:
|
||
(pass) assist session lifecycle regressions > dry-run previews every enter branch without authentication, requests or persistence [2.38ms]
|
||
(pass) assist session lifecycle regressions > runCli preserves delivered login URLs in text and JSON while redacting captured diagnostics [4.10ms]
|
||
(pass) assist session lifecycle regressions > registers a newly imported enterprise before switching and persists its default [3.35ms]
|
||
(pass) assist session lifecycle regressions > reports a failed switch without claiming success after saving the enterprise [1.45ms]
|
||
(pass) assist session lifecycle regressions > keeps error output redacted in text and JSON [1.35ms]
|
||
(pass) assist session lifecycle regressions > saves a valid temporary session without keys or key permission and tolerates multiple keys [3.38ms]
|
||
(pass) assist session lifecycle regressions > marks failed or partial identity probes unknown instead of falsely reporting normal risk [0.64ms]
|
||
(pass) assist session lifecycle regressions > preserves a known JWT admin and records incomplete profile metadata on disk [0.83ms]
|
||
(pass) assist session lifecycle regressions > does not reuse a different employee's administrator or risk profile [0.93ms]
|
||
(pass) assist session lifecycle regressions > does not treat malformed permissions or roles as an empty complete profile [0.49ms]
|
||
(pass) assist session lifecycle regressions > retains known permissions for the same staff when a later probe is incomplete [0.90ms]
|
||
(pass) assist session lifecycle regressions > merges known partial roles with the same staff's previous roles before risk analysis [0.94ms]
|
||
|
||
src/cli/mutation.test.ts:
|
||
(pass) CLI mutation protocol > bill --dry-run returns a preview without creating an API client [0.34ms]
|
||
(pass) CLI mutation protocol > bill write without confirmation is rejected before the API call [0.07ms]
|
||
|
||
src/cli/prototype-guard.test.ts:
|
||
(pass) rejects prototype paths before mutation and keeps normal patches working [0.59ms]
|
||
(pass) inherited options and runtime fields cannot authorize or change a command [0.06ms]
|
||
|
||
src/cli/stream-output.test.ts:
|
||
(pass) NDJSON output destinations across CLI, MCP and HTTP > waits for the terminal destination before producing the next record [1.38ms]
|
||
(pass) NDJSON output destinations across CLI, MCP and HTTP > writes actual NDJSON to output-file and returns a compact summary [0.94ms]
|
||
(pass) NDJSON output destinations across CLI, MCP and HTTP > rejects embedded streaming without a destination before fetching records [0.25ms]
|
||
(pass) NDJSON output destinations across CLI, MCP and HTTP > returns a proper MCP error rather than emitting record bytes on process stdout [0.74ms]
|
||
(pass) NDJSON output destinations across CLI, MCP and HTTP > returns an HTTP error response instead of a successful empty result [8.09ms]
|
||
|
||
src/cli/runner.test.ts:
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "version" [0.06ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "verSion" [0.02ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "versioN" [0.01ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "VERSION" [0.01ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "Version"
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "v" [0.01ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "V"
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "-v" [0.02ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "-V" [0.01ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "--version"
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "--verSion" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "--VERSION"
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "--v"
|
||
(pass) CLI runner - version and help aliases > correctly outputs version for "--V"
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "<empty>" [0.20ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "help" [0.05ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "HeLp" [0.04ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "HELP" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "h" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "H" [0.04ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "-h" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "-H" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "--help" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "--HeLp" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "--HELP" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "?" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > correctly outputs help for "-?" [0.03ms]
|
||
(pass) CLI runner - version and help aliases > handles unknown commands gracefully [0.07ms]
|
||
(pass) CLI runner - version and help aliases > returns semantic confirmation exit code and nextAction [1.76ms]
|
||
(pass) CLI runner - version and help aliases > supports layered help by command domain and subcommand [0.20ms]
|
||
(pass) CLI runner - version and help aliases > keeps help and version machine-readable when --json is requested [0.16ms]
|
||
(pass) CLI runner - version and help aliases > does not swallow positional arguments after subcommand boolean flags [0.08ms]
|
||
|
||
src/cli/architecture-boundaries.test.ts:
|
||
(pass) Architecture Layering Boundaries > workflow imports use the module directories after the platform migration [30.27ms]
|
||
(pass) Architecture Layering Boundaries > Entrypoints (src/cli, src/http, server.ts, cli.ts, aipro-cli.ts) must never import domains/*/api directly [4.99ms]
|
||
(pass) Architecture Layering Boundaries > src/domains/ must remain pure SDK and never import from cli, http, or server entrypoints [8.83ms]
|
||
(pass) Architecture Layering Boundaries > src/core/ must never depend upward on domains, cli, http, or server entrypoints [2.18ms]
|
||
(pass) Architecture Layering Boundaries > src/core/ must only contain whitelisted infrastructure modules [0.05ms]
|
||
|
||
src/http/server.test.ts:
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > GET / 返回服务概览与本地 CORS 标头 [0.77ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > GET /health 返回存活探针状态 [0.51ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > GET /openapi.json 返回标准包装层 OpenAPI 规范 [0.35ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > GET /raw-openapi.json 返回原生下游 OpenAPI 规范 [0.36ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > GET /docs 返回 Scalar 交互式文档 HTML 页面 [0.22ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > POST /api/cli 允许同进程执行 CLI 指令 [0.27ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > POST /api/cli 拒绝来自非授信外部 Origin 的跨站命令执行请求 (防 CSRF RCE) [0.19ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > GET /v1/corps 返回企业列表与运行模式 [0.41ms]
|
||
(pass) HTTP Server - 嵌入式服务与 REST 网关 > OPTIONS /v1/corps 允许本地 Origin 预检并拦截未知外部 Origin [0.27ms]
|
||
|
||
src/domains/contact/contact.test.ts:
|
||
(pass) Contact Domain - 通讯录与人员模型 > StaffSchema 正确解析包含 null 字段的员工对象 [0.17ms]
|
||
(pass) Contact Domain - 通讯录与人员模型 > StaffSchema 正确解析完整员工信息 [0.02ms]
|
||
(pass) Contact Domain - 通讯录与人员模型 > 模糊搜索与过滤逻辑可正确按姓名、邮箱、工号匹配 [0.04ms]
|
||
|
||
src/domains/role/role.test.ts:
|
||
(pass) Role Domain - 角色定义与成员 > loads and filters roles [1.36ms]
|
||
(pass) Role Domain - 角色定义与成员 > resolves a role and loads its members [0.39ms]
|
||
|
||
src/domains/bill/create.test.ts:
|
||
(pass) filterBillFormByTemplate > 只保留模板声明的字段,剔除未声明字段 [0.06ms]
|
||
(pass) filterBillFormByTemplate > 返回缺失的必填字段 [0.01ms]
|
||
(pass) filterBillFormByTemplate > 模板没有 components 时保留 specificationId 与 details
|
||
(pass) filterFeeTypeFormBySpec > 剔除费用类型未声明的字段(如 feeDate) [0.03ms]
|
||
(pass) filterFeeTypeFormBySpec > schema 为空时保留候选字段
|
||
(pass) filterFeeTypeFormBySpec > 保留 schema 声明的其它字段
|
||
|
||
src/domains/bill/templates.test.ts:
|
||
(pass) normalizeTemplateGroups > 默认只返回启用模板,并跳过空分组/停用分组 [0.06ms]
|
||
(pass) normalizeTemplateGroups > includeInactive 返回停用模板与停用分组 [0.03ms]
|
||
(pass) normalizeTemplateGroups > 优先使用 originalId,兼容含冒号的原始 ID [0.01ms]
|
||
(pass) normalizeTemplateGroups > 保留分组名与模板类型 [0.01ms]
|
||
|
||
src/domains/bill/invoice-timeout.test.ts:
|
||
(pass) invoice detail cancellation > clears the deadline on fast success without cancelling the request [0.77ms]
|
||
(pass) invoice detail cancellation > aborts a pending request and preserves successful invoices [42.19ms]
|
||
(pass) invoice detail cancellation > keeps the deadline active while reading the response body [41.21ms]
|
||
(pass) invoice detail cancellation > does not use a generic Ky client's automatic retry for a 503 [0.32ms]
|
||
(pass) invoice detail cancellation > cancels the existing authentication replay at the same deadline [41.76ms]
|
||
(pass) invoice detail cancellation > does not mutate the returned map when a fetch ignores cancellation [43.47ms]
|
||
(pass) invoice detail cancellation > does not create invoice requests or deadlines when skipped [0.28ms]
|
||
|
||
src/domains/bill/draft-validation.test.ts:
|
||
(pass) validateBillDraft 派生字段校验 > 合法的两明细单据通过校验 [1.70ms]
|
||
(pass) validateBillDraft 派生字段校验 > 拦截币种混加(USD 明细混入 CNY 单据) [0.12ms]
|
||
(pass) validateBillDraft 派生字段校验 > 拦截外币金额与汇率不匹配 [0.11ms]
|
||
(pass) validateBillDraft 派生字段校验 > 拦截报销金额与明细合计不一致 [0.04ms]
|
||
(pass) validateBillDraft 派生字段校验 > 拦截发票总金额与明细发票合计不一致 [0.03ms]
|
||
(pass) validateBillDraft 派生字段校验 > 拦截残留 draft 状态的明细 [0.05ms]
|
||
(pass) validateBillDraft 派生字段校验 > 拦截重复的明细序号 [0.03ms]
|
||
(pass) validateBillDraft 派生字段校验 > 拦截最晚付款日期早于提交日期 [0.27ms]
|
||
(pass) validateBillDraft 派生字段校验 > 重复绑定同一张发票给出 warning [0.07ms]
|
||
(pass) assertBillDraftValid > 合法表单不抛错 [0.08ms]
|
||
(pass) assertBillDraftValid > 非法表单抛出 ValidationError 并列出错误字段 [0.14ms]
|
||
|
||
src/domains/bill/bill.test.ts:
|
||
(pass) Bill Domain > validates EntitySchema [0.69ms]
|
||
(pass) Bill Domain > validates RawBillItemSchema and formats fields with dictionary [0.87ms]
|
||
(pass) Bill Domain > resolves approval references from staff, department and fee type catalogs [2.35ms]
|
||
(pass) Bill Domain > extracts linked loan and requisition nodes as a relation tree [0.58ms]
|
||
(pass) Bill Domain > normalizes nested bill attachments and removes duplicates [0.68ms]
|
||
(pass) Bill Domain > enriches attachment metadata with file-service download URLs [0.45ms]
|
||
(pass) Bill Domain > normalizes risk warnings, budget state and invoice warnings [0.63ms]
|
||
(pass) Bill Domain > calculates approval-node dwell time and automatic skip markers [0.46ms]
|
||
(pass) Bill Domain > translates flow actions, states, Ebot operators and print reminders [0.23ms]
|
||
(pass) Bill Domain > builds the captured approve, reject, transfer, add-node and comment payloads [1.43ms]
|
||
(pass) Bill Domain > resolves transfer and add-node people by full ID, employee code or unique name [0.26ms]
|
||
(pass) Bill Domain > translates raw bill flow into standard markdown representation [1.05ms]
|
||
(pass) Bill Domain > modular translator formatting functions format scalar and complex types properly [0.78ms]
|
||
(pass) Bill Domain > translates full bill preserving relative attachment and invoice positions [0.28ms]
|
||
(pass) Bill Domain > Server-Side Filter & Date Helpers > parses relative since durations accurately [0.06ms]
|
||
(pass) Bill Domain > Server-Side Filter & Date Helpers > parses date filter strings and end-of-day offsets [0.07ms]
|
||
(pass) Bill Domain > Server-Side Filter & Date Helpers > builds WAF-safe server filterBy expressions with .in() pattern [0.14ms]
|
||
(pass) Bill Domain > Server-Side Filter & Date Helpers > normalizes searchFields parameter correctly [0.05ms]
|
||
(pass) Bill Domain > Server-Side Filter & Date Helpers > builds multi-field composite OR and single-field RQL based on searchFields [0.05ms]
|
||
(pass) Bill Domain > Server-Side Filter & Date Helpers > filters bills in memory accurately based on searchFields [1.52ms]
|
||
(pass) Bill Domain > traceBillFlowDetail 全域穿透诊断与待办根因分析 > 待审批状态:精准解析提报人、金额、当前节点与待办审批人,判定可审批 [0.84ms]
|
||
(pass) Bill Domain > traceBillFlowDetail 全域穿透诊断与待办根因分析 > 待出纳打款节点 (PAYING):精准识别并诊断 400 根因与排障建议 [0.24ms]
|
||
(pass) Bill Domain > traceBillFlowDetail 全域穿透诊断与待办根因分析 > uses actual state instead of the display name: 出纳审批 [0.15ms]
|
||
(pass) Bill Domain > traceBillFlowDetail 全域穿透诊断与待办根因分析 > uses actual state instead of the display name: 支付复核 [0.04ms]
|
||
(pass) Bill Domain > traceBillFlowDetail 全域穿透诊断与待办根因分析 > uses actual state instead of the display name: 普通审批 [0.04ms]
|
||
(pass) Bill Domain > traceBillFlowDetail 全域穿透诊断与待办根因分析 > 单据不存在时返回友好未找到诊断报告 [0.28ms]
|
||
|
||
src/domains/bill/copy.test.ts:
|
||
(pass) buildBillCopyForm > 清空发票绑定并把发票总额归零 [1.71ms]
|
||
(pass) buildBillCopyForm > 重算报销金额与支付金额 [0.05ms]
|
||
(pass) buildBillCopyForm > 剔除明细草稿标记 [0.03ms]
|
||
(pass) buildBillCopyForm > 默认保留附件 [0.03ms]
|
||
(pass) buildBillCopyForm > dropAttachments 清空单据与明细附件 [0.04ms]
|
||
(pass) buildBillCopyForm > 支持自定义标题并保留币种字段 [0.04ms]
|
||
(pass) buildBillCopyForm > 不修改源对象 [0.03ms]
|
||
|
||
src/domains/platform/snapshot-config-diff.test.ts:
|
||
(pass) snapshot diff includes mapping changes [2.58ms]
|
||
(pass) snapshot diff includes inputs changes [0.04ms]
|
||
(pass) snapshot diff includes fields changes [0.02ms]
|
||
(pass) snapshot diff includes form changes [0.01ms]
|
||
(pass) snapshot diff includes header changes [0.01ms]
|
||
(pass) snapshot diff includes params changes
|
||
(pass) snapshot diff includes onError changes [0.01ms]
|
||
(pass) snapshot diff includes customConfig changes
|
||
(pass) snapshot diff detects reordered and reparented nodes without relying on saved index metadata [0.09ms]
|
||
|
||
src/domains/platform/types.test.ts:
|
||
(pass) FieldMappingSchema 字段映射验证与序列化 > 正确解析仅含 key 的映射项 [0.86ms]
|
||
(pass) FieldMappingSchema 字段映射验证与序列化 > 正确保留 value 表达式,不被剥离丢失 (防止 Piper 报错金额/必填字段为空) [0.02ms]
|
||
(pass) FieldMappingSchema 字段映射验证与序列化 > 正确保留复杂对象/数组或数字类型的 value 与扩展属性 [0.03ms]
|
||
(pass) FieldMappingSchema 字段映射验证与序列化 > 在 EkuaibaoDatalinkCreateTaskSchema 节点中完整保留所有字段映射的 key 与 value [0.71ms]
|
||
|
||
src/domains/platform/running-jobs.test.ts:
|
||
(pass) running jobs response contract > rejects business authentication failure 401 before empty-data normalization [0.27ms]
|
||
(pass) running jobs response contract > rejects business authentication failure 403 before empty-data normalization [0.02ms]
|
||
(pass) running jobs response contract > rejects business authentication failure "401" before empty-data normalization [0.02ms]
|
||
(pass) running jobs response contract > rejects business authentication failure "403" before empty-data normalization [0.01ms]
|
||
(pass) running jobs response contract > preserves the API error category and server message for other business failures [0.10ms]
|
||
(pass) running jobs response contract > preserves successful null, missing, single-job and array responses [0.66ms]
|
||
(pass) running jobs response contract > does not relax unwrap's nonempty-detail requirement [0.24ms]
|
||
(pass) running job watcher error propagation > propagates running-job authentication failure in snapshot mode [1.39ms]
|
||
(pass) running job watcher error propagation > retains non-authentication log fallback in snapshot mode [1.39ms]
|
||
(pass) running job watcher error propagation > propagates running-job authentication failure in continuous mode [0.05ms]
|
||
(pass) running job watcher error propagation > retains non-authentication log fallback in continuous mode [0.15ms]
|
||
|
||
src/domains/platform/workflow-debug.test.ts:
|
||
(pass) workflow debug completion evidence > reports completed only when all diagnostics were fetched [1.64ms]
|
||
(pass) workflow debug completion evidence > reports a failed terminal job [0.12ms]
|
||
(pass) workflow debug completion evidence > keeps timed-out jobs queryable and exposes missing diagnostic evidence [0.15ms]
|
||
(pass) workflow debug completion evidence > marks partial diagnostic reads as incomplete rather than clean success [0.09ms]
|
||
(pass) workflow debug completion evidence > preserves job identity when polling fails and does not hide the error [0.19ms]
|
||
(pass) workflow debug completion evidence > rejects invalid timing options before creating a mutating job [0.06ms]
|
||
(pass) workflow debug completion evidence > retries a newly created job's HTTP 404 instead of reporting an authorization failure [1.32ms]
|
||
|
||
src/domains/platform/execution-diff.test.ts:
|
||
(pass) workflow diff execution identities > compares every loop instance rather than only the first task name [0.31ms]
|
||
(pass) workflow diff execution identities > preserves repeated attempts and identifies missing instances [0.04ms]
|
||
(pass) workflow diff execution identities > uses the parent task path when repeated names occur in different branches [0.06ms]
|
||
(pass) workflow diff execution identities > counts output-only changes, including the singular output wire format [0.04ms]
|
||
(pass) workflow diff execution identities > resolves flat parentId relationships even when siblings change order [0.06ms]
|
||
(pass) workflow diff execution identities > does not discard scalar output changes [0.03ms]
|
||
|
||
src/domains/datalink/datalink.test.ts:
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 序号 in [1] [0.15ms]
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 序号 == 1 &&
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 不存在 != 1 [0.06ms]
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 序号 === 1 [0.87ms]
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 序号 in ()
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 序号 > 1 || 序号 < 3 [0.41ms]
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 备注 == 'broken
|
||
(pass) record predicate and normalized projection regressions > rejects invalid predicate even with no records: 序号 == 1&&garbage [0.03ms]
|
||
(pass) record predicate and normalized projection regressions > validates unknown and ambiguous fields before evaluating records [0.03ms]
|
||
(pass) record predicate and normalized projection regressions > honors quotes, commas and conjunctions inside values [0.17ms]
|
||
(pass) record predicate and normalized projection regressions > selects normalized business fields and system name by label or original field name [0.21ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 列出应用并为权限数组提供稳定默认值 [0.62ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 获取应用详情时请求管理员关联 [0.17ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 获取对象字段元数据并保留扩展属性 [0.67ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 分页查询记录并生成标准化分页结果 [0.16ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 关键词过滤和字段投影可用于通用 CLI 查询 [0.06ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 切换记录停启用状态调用 PUT contract state 接口 [0.15ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 获取记录详情调用 GET datalink detail 接口 [0.04ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 编辑业务对象记录调用 POST entityEdit edit 接口 [0.09ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > 重算台账调用 POST ledger recompute 接口 [0.06ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > buildSafeRecordEditPayload 执行 Read-Modify-Write 安全合并并归一化嵌套引用 ID 与 visibility [0.31ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > fetchAllEntityRecords 自动分页拉取全量记录 [0.14ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > auditEntityRecords 巡检必填缺失、停用引用与跨台账同名字段同步差异 [0.37ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > batchSafeEditRecords 支持 dryRun 预览与并发安全合并 [0.22ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > aggregateRecordFields 准确统计数值、金额对象、货币字符串并支持分组 [0.19ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > auditLedgerContinuityAndBaseline 精准诊断台账序号断层、重号以及离群异常 [0.15ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > parseExpectClause 解析各种容差与期望表达式 [0.08ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > filterRecordsByPredicate 支持比较操作符与 in 语法 [0.09ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > parseSetClause 解析声明式更新赋值并映射到实体字段名 [0.08ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > normalizeDatalinkRecord 自动提取主键 ID、名称、编码并剥离动态前缀 [0.04ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > calculateEntityRecordStats 准确统计启用率、重名交叉与编码结构聚类 [0.26ms]
|
||
(pass) DataLink Domain - 应用、业务对象与记录查询 > iterateAllEntityRecords 支持跨页逐条流式下发 [0.17ms]
|
||
(pass) DataLink native server filter and keyword expression builder > buildKeywordFilter 缺省模式保持向后兼容并仅查询 name 与 code [0.01ms]
|
||
(pass) DataLink native server filter and keyword expression builder > buildKeywordFilter 支持指定业务字段并自动附加 form. 命名空间 [0.05ms]
|
||
(pass) DataLink native server filter and keyword expression builder > formatServerFieldExpr 针对 money 字段生成标准 .standard 精确表达式 [0.01ms]
|
||
(pass) DataLink native server filter and keyword expression builder > buildServerFieldFilter 支持 key~val 模糊检索并附加 active 白名单 [0.04ms]
|
||
(pass) DataLink native server filter and keyword expression builder > buildServerFieldFilter 支持已更名标签或底层物理 Code 映射 [0.03ms]
|
||
(pass) DataLink native server filter and keyword expression builder > buildServerFieldFilter 透传原生复杂的 DataLink DSL 表达式
|
||
|
||
src/domains/datalink/set-separators.test.ts:
|
||
(pass) commas inside single and double quoted strings do not split assignments [0.04ms]
|
||
(pass) escaped quotes preserve the quoted comma boundary [0.06ms]
|
||
(pass) rejects incomplete assignments: 名称="unfinished [0.05ms]
|
||
(pass) rejects incomplete assignments: 名称=A,broken [0.01ms]
|
||
(pass) rejects incomplete assignments: 名称=A,
|
||
(pass) rejects incomplete assignments: =A
|
||
|
||
src/domains/datalink/set-literals.test.ts:
|
||
(pass) quoted numbers, booleans and null remain text while bare literals retain conversion [0.08ms]
|
||
|
||
src/domains/message/message.test.ts:
|
||
(pass) Message Domain - 消息中心模型 > normalizes message fields and filters by type [0.07ms]
|
||
(pass) Message Domain - 消息中心模型 > merges read and unread pages by ID and newest time [0.05ms]
|
||
|
||
src/domains/feetype/feetype.test.ts:
|
||
(pass) domains/feetype > tools & helpers > flattenFeeTypeTree 正确递归展开全路径与父级关系 [0.06ms]
|
||
(pass) domains/feetype > tools & helpers > collectSubtreeNodes 正确收集指定子树及其全部后代 [0.07ms]
|
||
|
||
src/domains/menu/api.test.ts:
|
||
(pass) Domains/Menu - API 单元测试 > fetchDesktopMenuTree 成功解析全站桌面端菜单响应 [0.57ms]
|
||
(pass) Domains/Menu - API 单元测试 > fetchWorkbenchApps 成功提取应用管理下的 7/N 个业务应用 [0.12ms]
|
||
(pass) Domains/Menu - API 单元测试 > fetchAppCenterMenus 成功提取应用中心子栏目 [0.08ms]
|
||
(pass) Domains/Menu - API 单元测试 > 当菜单树无 dataLink 节点时安全返回空数组 [0.03ms]
|
||
|
||
src/domains/task/task.test.ts:
|
||
(pass) Task Domain - 待办任务模型 > normalizes backlog and preserves approval actions [0.69ms]
|
||
(pass) Task Domain - 待办任务模型 > normalizes flows returned by the submitted-bills endpoint [0.04ms]
|
||
|
||
src/domains/events/events.test.ts:
|
||
(pass) Event poller > persists dedupe keys and only returns new events [2.32ms]
|
||
|
||
src/domains/events/pagination.test.ts:
|
||
(pass) scans past the first page and deduplicates subsequent full polls [23.74ms]
|
||
(pass) retains dedupe state for all active events even above the history cap [14.97ms]
|
||
(pass) partial or stalled pagination cannot commit incomplete state (stalled=false) [0.70ms]
|
||
(pass) partial or stalled pagination cannot commit incomplete state (stalled=true) [0.54ms]
|
||
|
||
src/domains/permission/permission.test.ts:
|
||
(pass) Permission Domain - 角色权限 > parses the role permission snapshot [0.29ms]
|
||
|
||
src/domains/dimension/dimension.test.ts:
|
||
(pass) Dimension Domain - 自定义档案目录 > loads preset and custom dimension catalogs and filters by name [0.49ms]
|
||
(pass) Dimension Domain - 自定义档案目录 > loads dimension items by catalog ID [0.35ms]
|
||
|
||
src/domains/assist-platform/session-import.test.ts:
|
||
(pass) assist session import credentials and identity > restores only the key pair actually retained by the save operation [1.95ms]
|
||
(pass) assist session import credentials and identity > keeps newly acquired keys in preference to the old pair [1.07ms]
|
||
(pass) assist session import credentials and identity > does not invent keys when no pair is saved [1.00ms]
|
||
(pass) assist session import credentials and identity > does not restore an incomplete saved pair [1.17ms]
|
||
(pass) assist session import credentials and identity > restores the legacy auth key pair that the loader already preserves [0.95ms]
|
||
(pass) assist session import credentials and identity > does not take keys from a same-id file outside the actual write directory [0.99ms]
|
||
(pass) assist session import credentials and identity > resolves the default write directory when no explicit directory is supplied [1.12ms]
|
||
(pass) assist session import credentials and identity > restores saved keys even if no identity profile could be generated [0.72ms]
|
||
(pass) assist session import credentials and identity > does not bypass overwrite protection [0.66ms]
|
||
(pass) assist session import credentials and identity > recomputes completeness when the current JWT confirms admin=false [0.86ms]
|
||
(pass) assist session import credentials and identity > recomputes completeness when the current JWT confirms admin=true [0.88ms]
|
||
(pass) assist session import credentials and identity > recomputes completeness when the current JWT confirms admin="false" [0.89ms]
|
||
(pass) assist session import credentials and identity > recomputes completeness when the current JWT confirms admin="true" [0.82ms]
|
||
(pass) assist session import credentials and identity > does not mistake JWT admin=null for a confirmed non-admin [0.84ms]
|
||
(pass) assist session import credentials and identity > does not mistake JWT admin="unknown" for a confirmed non-admin [0.75ms]
|
||
(pass) assist session import credentials and identity > does not mistake JWT admin="" for a confirmed non-admin [0.80ms]
|
||
(pass) assist session import credentials and identity > does not mistake JWT admin=0 for a confirmed non-admin [0.87ms]
|
||
(pass) assist session import credentials and identity > does not mistake JWT admin=1 for a confirmed non-admin [0.60ms]
|
||
(pass) assist session import credentials and identity > does not mistake JWT admin={} for a confirmed non-admin [0.74ms]
|
||
(pass) assist session import credentials and identity > does not mistake JWT admin=[] for a confirmed non-admin [0.63ms]
|
||
(pass) assist session import credentials and identity > keeps an omitted JWT admin unknown [0.76ms]
|
||
(pass) assist session import credentials and identity > does not treat other missing fields as complete after JWT admin recovery [0.64ms]
|
||
(pass) assist session import credentials and identity > does not turn historical admin evidence into a successful current query [0.84ms]
|
||
(pass) assist session import credentials and identity > preserves a same-employee high risk while the new profile remains incomplete [0.84ms]
|
||
(pass) assist session import credentials and identity > does not inherit another employee's historical admin, roles or risk [0.98ms]
|
||
(pass) assist session import credentials and identity > does not assume legacy profiles without a missing-field array are complete [0.67ms]
|
||
(pass) assist session import credentials and identity > does not clear missing admin for a profile belonging to a different employee [0.61ms]
|
||
(pass) assist session import credentials and identity > reports saved keys consistently in CLI JSON and the runtime context [0.95ms]
|
||
|
||
src/domains/assist-platform/transfer-recipient.test.ts:
|
||
(pass) assist-platform 转交目标解析 > 同名不同账号拒绝精确匹配,错误提示唯一工号或账号 [0.56ms]
|
||
(pass) assist-platform 转交目标解析 > 相同工号的不同用户也拒绝选择第一人 [0.06ms]
|
||
(pass) assist-platform 转交目标解析 > 账号精确匹配优先于其他人的工号和姓名 [0.05ms]
|
||
(pass) assist-platform 转交目标解析 > 工号精确匹配优先于其他人的姓名 [0.04ms]
|
||
(pass) assist-platform 转交目标解析 > 同一稳定账号的多条角色记录不会令 张三 产生歧义 [0.04ms]
|
||
(pass) assist-platform 转交目标解析 > 同一稳定账号的多条角色记录不会令 3016 产生歧义 [0.02ms]
|
||
(pass) assist-platform 转交目标解析 > 同一稳定账号的多条角色记录不会令 zhang3016 产生歧义 [0.02ms]
|
||
(pass) assist-platform 转交目标解析 > 同一稳定账号的多条角色记录不会令 zhang 产生歧义 [0.03ms]
|
||
(pass) assist-platform 转交目标解析 > 同一稳定账号的多条角色记录不会令 3016 产生歧义 [0.02ms]
|
||
(pass) assist-platform 转交目标解析 > 模糊匹配存在多个用户时拒绝 [0.04ms]
|
||
(pass) assist-platform 转交目标解析 > 执行转交时 张三 解析失败不提交原始值 [0.08ms]
|
||
(pass) assist-platform 转交目标解析 > 执行转交时 不存在的账号 解析失败不提交原始值 [0.04ms]
|
||
(pass) assist-platform 转交目标解析 > 查询候选人失败时不以原始账号继续写入 [0.12ms]
|
||
(pass) assist-platform 转交目标解析 > 使用唯一工号时写入稳定账号 ID [0.15ms]
|
||
|
||
src/domains/assist-platform/assist-platform.test.ts:
|
||
(pass) domains/assist-platform - 协助平台业务编排 > searchCorporations 能够正确分页并返回企业列表 [0.27ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > getCorporationDetail 返回企业详细配置 [0.15ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > listAssistTickets 正确映射工单时间、申请人与授权码 [0.28ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > findStaff 正确检索企业员工工号与角色 [0.15ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > generateAssistSession 管理员模式一键换取免密登录直通链接 [0.28ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > generateAssistSession 用户模式自动定位 staffId 换取免密链接 [0.22ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > applyAssistTicket 发起新的协助工单申请 [0.15ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > approveAssistTicket 审批通过协助工单 [0.19ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > analyzeStaffRoleRisk - 高管权限风控识别 > 普通员工不触发高管警示 [0.02ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > analyzeStaffRoleRisk - 高管权限风控识别 > 命中主管理员角色触发 HIGH 级别风控 [0.02ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > analyzeStaffRoleRisk - 高管权限风控识别 > 具备全系统管理权限或对公付款权限即使无角色名也触发风控 [0.01ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > transferAssistTicket - 协助工单转交服务 > listTransferCandidates 正确解析候选人清单 [0.06ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > transferAssistTicket - 协助工单转交服务 > resolveTransferRecipient 能够按姓名或工号精确定位人员 [0.06ms]
|
||
(pass) domains/assist-platform - 协助平台业务编排 > transferAssistTicket - 协助工单转交服务 > transferAssistTicket 能够向服务端发起转交请求并成功返回 [0.10ms]
|
||
|
||
src/domains/approval/parser.test.ts:
|
||
(pass) Approval Rule Parser - 规则语法解析与校验 > 正常解析包含单一硬性条款的规则 [0.72ms]
|
||
(pass) Approval Rule Parser - 规则语法解析与校验 > 正常解析包含复合梯度(硬性、弹性、建议、特殊)的整段自然语言规约 [0.04ms]
|
||
(pass) Approval Rule Parser - 规则语法解析与校验 > 拦截非法的严格程度标签 [0.08ms]
|
||
(pass) Approval Rule Parser - 规则语法解析与校验 > 拦截悬空的中括号(未指定严格程度) [0.02ms]
|
||
(pass) Approval Rule Parser - 规则语法解析与校验 > 拦截括号未闭合的语法错误 [0.02ms]
|
||
(pass) Approval Rule Parser - 规则语法解析与校验 > 拦截空的动作句式 [0.02ms]
|
||
(pass) Approval Rule Parser - 规则语法解析与校验 > 拦截未包含任何判定标记的纯文字 [0.02ms]
|
||
(pass) Approval Preference Parser - 偏好引用语法校验 > 校验通过合法的 @{级别} 引用 [0.05ms]
|
||
(pass) Approval Preference Parser - 偏好引用语法校验 > 拦截非法的 @{级别} 引用 [0.04ms]
|
||
|
||
src/domains/approval/session-expiry.test.ts:
|
||
(pass) all operation handles reject expired sessions while history remains readable [0.90ms]
|
||
(pass) epoch-zero expiry is expired rather than an unlimited session [0.51ms]
|
||
(pass) checklist operations enforce expiry and scoped handles cannot select another corporation [0.61ms]
|
||
|
||
src/domains/approval/gateway.test.ts:
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 硬性违规:必须驳回,绝对禁止同意放行 [0.16ms]
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 零违规:没有硬性或弹性违规不能驳回,必须同意放行 [0.07ms]
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 仅建议项违规:不构成驳回理由,禁止驳回,决断为备注通过 [0.06ms]
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 弹性违规:允许驳回;数量 <= 2 时为备注通过,>= 3 时建议人工复核 [0.04ms]
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 特殊项命中:转人工复核,禁止直接驳回 [0.04ms]
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 待核验漏检保护:存在 PENDING 要点时,同意和驳回均被阻断 [0.03ms]
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 审批意见长度控制:超过 150 字符时抛错阻断 [0.02ms]
|
||
(pass) Approval Gateway Policy - 可配置审批网关规则测试 > 支持配置自定义网关钩子覆盖或扩展逻辑 [0.03ms]
|
||
|
||
src/domains/approval/status-validation.test.ts:
|
||
(pass) rejects unknown status before updates and blocks corrupt persisted findings [0.79ms]
|
||
|
||
src/domains/approval/approval.test.ts:
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 数据库初始化时自动种子化默认偏好配置 [0.51ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 成功创建合规规则并自动递增编号 [0.46ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 强校验拦截:不合规的规则正文物理禁止入库 [0.41ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 更新规则正文时自动增加版本号并再次校验 [0.46ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 按 Scope 与 Status 进行条件过滤检索 [0.44ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 一键获取去重索引列表 listScopes 及对应的索引编号 [0.49ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 通过索引编号或索引名称获取该索引对应的所有规则明细 getScopeDetail [0.52ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 风格偏好的更新与非法引用拦截 [0.43ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 审批运行、要点清单注入与全流程审计流水登记 [0.48ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 审批运行按当前企业隔离相同单号 [0.42ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 下游审批执行失败时将运行标记为 ERROR [0.69ms]
|
||
(pass) Approval Domain - SQLite 持久化与规约仓储 > 审批会话 6 位 shortId 生成、6 小时 TTL 与会话级日志挂载 [0.50ms]
|
||
|
||
src/domains/store/api.test.ts:
|
||
(pass) Domains/Store - API 单元测试 > listOpenApiKeys 解析规范的企业 OpenAPI 密钥响应 [0.32ms]
|
||
(pass) Domains/Store - API 单元测试 > getOpenConfig 解析免登重定向配置响应 [0.12ms]
|
||
(pass) Domains/Store - API 单元测试 > listClientGoods 解析企业已购应用响应 [0.42ms]
|
||
(pass) Domains/Store - API 单元测试 > searchStoreGoods 解析全量应用搜索响应 [0.16ms]
|
||
(pass) Domains/Store - API 单元测试 > getGoodsDetail 解析指定应用规格与详情 [0.26ms]
|
||
|
||
src/core/cache/cache.test.ts:
|
||
(pass) Core Cache - 多级缓存架构与淘汰机制 (加固测试) > L1: MemoryCache > 基础读写、删除与命名空间隔离 [1.07ms]
|
||
(pass) Core Cache - 多级缓存架构与淘汰机制 (加固测试) > L1: MemoryCache > TTL 过期检查 [21.14ms]
|
||
(pass) Core Cache - 多级缓存架构与淘汰机制 (加固测试) > L1: MemoryCache > 严格 LRU 访问热度调整与容量淘汰 (MAJ-08 & MAJ-09) [0.51ms]
|
||
(pass) Core Cache - 多级缓存架构与淘汰机制 (加固测试) > L2: SqliteCache > 复合主键 (namespace, key) 跨域存储与隔离 (CRIT-02) [0.47ms]
|
||
(pass) Core Cache - 多级缓存架构与淘汰机制 (加固测试) > L2: SqliteCache > TTL 过期与 pruneExpired 清理 [43.32ms]
|
||
(pass) Core Cache - 多级缓存架构与淘汰机制 (加固测试) > MultiLevelCache 两级协同与防击穿 (MAJ-01) > L1 miss 后从 L2 命中并自动回填至 L1 [0.58ms]
|
||
(pass) Core Cache - 多级缓存架构与淘汰机制 (加固测试) > MultiLevelCache 两级协同与防击穿 (MAJ-01) > 并发防击穿 (Thundering Herd Protection / In-flight Deduplication) [22.34ms]
|
||
|
||
src/core/config/env.test.ts:
|
||
(pass) CorpConfig Environment Attributes & Deduction > inferCorpEnvFromName deduces environment conservatively based on name and id [0.04ms]
|
||
(pass) CorpConfig Environment Attributes & Deduction > getCorpEnv respects explicit env, falls back to isTest, and finally infers [0.05ms]
|
||
(pass) CorpConfig Environment Attributes & Deduction > isCorpTest and isCorpProd maintain consistent boundaries [0.04ms]
|
||
(pass) CorpConfig Environment Attributes & Deduction > normalizeCorpConfig injects env and isTest into legacy configs seamlessly [0.10ms]
|
||
|
||
src/core/config/loader.test.ts:
|
||
(pass) core/config/loader > resolveEnterprisesDirs prioritizes HOSE_ENTERPRISES_DIR environment variable [0.40ms]
|
||
(pass) core/config/loader > resolveEnterprisesDirs does not include relative project enterprises dir [2.29ms]
|
||
(pass) core/config/loader > resolveEnterprisesDirs prioritizes testEnterprisesDir from global config [0.82ms]
|
||
(pass) core/config/loader > resolveWritableEnterprisesDir respects HOSE_ENTERPRISES_DIR [0.99ms]
|
||
(pass) core/config/loader > loadCorpConfigs loads valid configs and skips example files [0.78ms]
|
||
(pass) core/config/loader > loadCorpConfigs merges multiple directories with earlier directory taking precedence [1.03ms]
|
||
(pass) core/config/loader > saveCorpConfig writes validated JSON to target directory [0.42ms]
|
||
(pass) core/config/loader > loadGlobalConfig and saveGlobalConfig respect HOSE_CONFIG_FILE [0.29ms]
|
||
(pass) core/config/loader > saveCorpConfig and saveAccount enforce 0o600 file permissions and respect HOSE_ACCOUNTS_FILE [1.26ms]
|
||
|
||
src/core/auth/openapi-onboard.test.ts:
|
||
(pass) provisional link identity isolation > does not mutate or save the default identity for a temporary staff link [0.51ms]
|
||
(pass) provisional link identity isolation > persists token and normalized identity together and clears the old staff name [0.10ms]
|
||
(pass) provisional link identity isolation > keeps ordinary renewal of the same staff working [0.05ms]
|
||
(pass) provisional link identity isolation > does not partly mutate memory when saving fails [0.06ms]
|
||
(pass) provisional link identity isolation > rejects a mismatched signing identity before persisting [0.05ms]
|
||
(pass) provisional link identity isolation > does not disguise an existing session as another staff without OpenAPI keys [0.05ms]
|
||
|
||
src/core/http/token-renewal.test.ts:
|
||
(pass) piper replaces cached credentials and replays a POST at most once (denied=false) [1.43ms]
|
||
(pass) piper replaces cached credentials and replays a POST at most once (denied=true) [0.64ms]
|
||
(pass) easo replaces cached credentials and replays a POST at most once (denied=false) [0.83ms]
|
||
(pass) easo replaces cached credentials and replays a POST at most once (denied=true) [0.49ms]
|
||
(pass) unity replaces cached credentials and replays a POST at most once (denied=false) [0.69ms]
|
||
(pass) unity replaces cached credentials and replays a POST at most once (denied=true) [0.42ms]
|
||
|
||
src/core/http/session-client.test.ts:
|
||
(pass) core/http/session-client refresh policy > allows refresh for account credentials or OpenAPI persistent credentials [0.07ms]
|
||
(pass) core/http/session-client refresh policy > fails expired temporary credentials without retrying or refreshing [0.34ms]
|
||
(pass) core/http/session-client refresh policy > automatically refreshes expired token via OpenAPI getProvisionalAuth when appKey/appSecurity are present [2.26ms]
|
||
(pass) core/auth/login > selectOpenApiKey > auto-selects when only one active key exists [0.06ms]
|
||
(pass) core/auth/login > selectOpenApiKey > requires explicit selection or --force when multiple active keys exist [0.05ms]
|
||
(pass) core/auth/login link expiry > parses explicit ttl and expires durations [0.08ms]
|
||
(pass) core/auth/login link expiry > parses expires-in / ttl strings to seconds for provisional auth link [0.04ms]
|
||
|
||
src/core/http/clients.test.ts:
|
||
(pass) core/http/fingerprint > generates default modern browser fingerprint headers [0.02ms]
|
||
(pass) core/http/fingerprint > supports custom cookie and referer [0.01ms]
|
||
(pass) core/http/session-client > merges closed session headers with browser fingerprint [0.02ms]
|
||
(pass) core/http/session-client > createSessionClient produces valid client [0.04ms]
|
||
(pass) core/http/openapi-client > builds correct OpenAPI request headers [0.02ms]
|
||
(pass) core/http/openapi-client > creates OpenAPI client with static appToken [0.09ms]
|
||
(pass) core/http/openapi-client > fails to create OpenAPI client when neither auth nor appToken is provided [0.03ms]
|
||
(pass) core/http/unity-client & script-engine-client > resolves corp cluster from cluster property or baseUrl [0.02ms]
|
||
(pass) core/http/unity-client & script-engine-client > getScriptEngineClient is defined and callable
|
||
(pass) core/http/unity-client & script-engine-client > reuses persisted EASO and Unity tokens from token-store across CLI runs without network calls [0.42ms]
|
||
|
||
src/core/db/db.test.ts:
|
||
(pass) Core DB - 数据库连接与结构化迁移机制 (加固测试) > 数据库初始化时自动应用所有版本迁移并记录到 _schema_migrations [1.30ms]
|
||
(pass) Core DB - 数据库连接与结构化迁移机制 (加固测试) > 核心数据表与新增的多级缓存表结构完备且索引有效 [0.51ms]
|
||
(pass) Core DB - 数据库连接与结构化迁移机制 (加固测试) > cache_entries 具备复合主键 (namespace, key) 约束 [0.45ms]
|
||
(pass) Core DB - 数据库连接与结构化迁移机制 (加固测试) > migration 2 可以平滑升级遗留的单列主键 cache_entries 表 [1.51ms]
|
||
(pass) Core DB - 数据库连接与结构化迁移机制 (加固测试) > 再次执行 runMigrations 保证幂等且不抛错 [0.42ms]
|
||
|
||
src/cli/commands/app.test.ts:
|
||
(pass) cli/commands/app > handleAppCommand > fails with exitCode 1 when no corp is selected [0.23ms]
|
||
(pass) cli/commands/app > handleAppCommand > lists workbench apps in table format [0.16ms]
|
||
(pass) cli/commands/app > handleAppCommand > filters workbench apps with --keyword [0.07ms]
|
||
(pass) cli/commands/app > handleAppCommand > supports --json output for app list [0.07ms]
|
||
(pass) cli/commands/app > handleAppCommand > returns error for unknown subcommand [0.02ms]
|
||
|
||
src/cli/commands/feetype.test.ts:
|
||
(pass) CLI - feetype 费用类型管理命令 > 未选中企业时抛出友好错误 [0.76ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype list 默认以树形层级展示活跃费用类型 [0.15ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype list --json 支持结构化输出 [0.08ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype get 查询单个费用类型详情及字段规格 [0.07ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype create 创建费用类型并展示卡片 [0.06ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype update 修改费用类型属性 [0.05ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype disable 停用费用类型 [0.05ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype enable 重新启用费用类型 [0.04ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype move 移动费用类型父级节点 [0.05ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype create --dry-run 不创建费用类型 [0.05ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > feetype fields 打印报账与申请字段表格 [0.07ms]
|
||
(pass) CLI - feetype 费用类型管理命令 > 未知 feetype 子命令时抛出支持说明 [0.02ms]
|
||
|
||
src/cli/commands/store.test.ts:
|
||
(pass) CLI - store 应用中心与应用商店探查 > 未选中企业时返回提示并报错 [0.16ms]
|
||
(pass) CLI - store 应用中心与应用商店探查 > store list 展示企业已购应用列表 [0.20ms]
|
||
(pass) CLI - store 应用中心与应用商店探查 > store search 检索应用市场商品 [0.12ms]
|
||
(pass) CLI - store 应用中心与应用商店探查 > store get 查看应用详情 [0.13ms]
|
||
(pass) CLI - store 应用中心与应用商店探查 > store keys 转发至 keys 执行器 [0.24ms]
|
||
|
||
src/cli/commands/workflow-nodes-confirmation.test.ts:
|
||
(pass) node grant previews without a gateway call and requires explicit confirmation [0.59ms]
|
||
|
||
src/cli/commands/auth.test.ts:
|
||
(pass) cli/commands/auth > aliases and subcommands > maps auth list to handleAccounts smoothly [0.13ms]
|
||
(pass) cli/commands/auth > aliases and subcommands > supports auth accounts with --json mode [0.04ms]
|
||
(pass) cli/commands/auth > aliases and subcommands > handles auth status / current aliases without crash [0.19ms]
|
||
(pass) cli/commands/auth > aliases and subcommands > supports auth sync-seal --dry-run [0.12ms]
|
||
|
||
src/cli/commands/corps-env.test.ts:
|
||
(pass) CLI - corps environment attributes & filtering > corps list displays environment column with emoji labels [0.12ms]
|
||
(pass) CLI - corps environment attributes & filtering > corps list --test filters only test and demo enterprises [0.06ms]
|
||
(pass) CLI - corps environment attributes & filtering > corps list --prod filters only production enterprises [0.04ms]
|
||
(pass) CLI - corps environment attributes & filtering > corps list --env=demo filters precisely demo enterprises [0.04ms]
|
||
(pass) CLI - corps environment attributes & filtering > corps tag requires mutation confirmation unless confirmed or dry-run [0.28ms]
|
||
(pass) CLI - corps environment attributes & filtering > corps tag previews change under --dry-run [0.04ms]
|
||
(pass) CLI - corps environment attributes & filtering > corps current displays environment attribute label [0.10ms]
|
||
(pass) CLI - corps environment attributes & filtering > context command reports environment counts and current corp env tag [1.10ms]
|
||
|
||
src/cli/commands/workflow-nodes.test.ts:
|
||
(pass) CLI - workflow nodes 字典探针与灰度开通测试 > workflow nodes: 成功探查当前企业已开通节点字典 [0.23ms]
|
||
(pass) CLI - workflow nodes 字典探针与灰度开通测试 > workflow nodes --all: 成功输出与 108 个灰度节点对照表 [0.21ms]
|
||
(pass) CLI - workflow nodes 字典探针与灰度开通测试 > workflow nodes --json: 输出机器可读的结构化 JSON [0.07ms]
|
||
(pass) CLI - workflow nodes 字典探针与灰度开通测试 > workflow nodes grant: 免密模式下成功发起灰度节点开通 [0.34ms]
|
||
(pass) CLI - workflow nodes 字典探针与灰度开通测试 > workflow nodes grant: 节点名称自动中文归一化 (如 'JS节点(新)' 映射为 'code-js2') [0.07ms]
|
||
(pass) CLI - workflow nodes 字典探针与灰度开通测试 > workflow nodes grant: 管理员密码保护预留生效 (未提供密码或密码错误被拒绝) [0.08ms]
|
||
(pass) CLI - workflow nodes 字典探针与灰度开通测试 > workflow analyze: 显式输出硬门禁与软建议边界,且支持 --fail 退出码门禁 [234.42ms]
|
||
|
||
src/cli/commands/review-compatibility.test.ts:
|
||
(pass) review CLI compatibility regressions > keeps real trace-shaped boolean flags valid through runner redaction [1.38ms]
|
||
(pass) review CLI compatibility regressions > documents legacy trace flags without dropping them from the parser vocabulary [0.69ms]
|
||
(pass) review CLI compatibility regressions > restores edit --file as code while explicit mapping and map --file still work [6.94ms]
|
||
(pass) review CLI compatibility regressions > keeps legacy trace invoice flags as explicit no-ops (direct flow) [2.45ms]
|
||
(pass) review CLI compatibility regressions > keeps legacy trace invoice flags as explicit no-ops (search fallback) [2.25ms]
|
||
(pass) review CLI compatibility regressions > preserves not-found trace output and status with compatibility notices [0.39ms]
|
||
(pass) review CLI compatibility regressions > shows actual physical schema keys, preserves JSON and falls back to name [0.70ms]
|
||
(pass) review CLI compatibility regressions > finds in-flight errors without expanding the existing terminal state filters [1.55ms]
|
||
(pass) review CLI compatibility regressions > reports workflow state truthfully when detail state is unavailable [2.74ms]
|
||
(pass) review CLI compatibility regressions > reports workflow state truthfully when detail state is 0 [0.36ms]
|
||
(pass) review CLI compatibility regressions > reports workflow state truthfully when detail state is 1 [0.23ms]
|
||
(pass) review CLI compatibility regressions > reports workflow state truthfully when detail state is 2 [0.22ms]
|
||
|
||
src/cli/commands/keys.test.ts:
|
||
(pass) CLI - keys 顶级命令与凭证提取 > 未选中企业时返回提示并报错 [0.10ms]
|
||
(pass) CLI - keys 顶级命令与凭证提取 > keys 默认脱敏显示 appSecurity 接入密码 [0.16ms]
|
||
(pass) CLI - keys 顶级命令与凭证提取 > keys --reveal 显式输出完整接入密码明文 [0.09ms]
|
||
(pass) CLI - keys 顶级命令与凭证提取 > keys --json 模式正常序列化 [0.13ms]
|
||
(pass) CLI - keys 顶级命令与凭证提取 > openapi keys 子命令平滑转发至同一执行器 [0.27ms]
|
||
|
||
src/cli/commands/platform.test.ts:
|
||
(pass) CLI - platform 命令与 record 动作 > 未选中企业时报错并返回 exitCode 1 [0.07ms]
|
||
(pass) CLI - platform 命令与 record 动作 > records 正确解析嵌套 dataLink 的停启用状态和更新时间 [0.37ms]
|
||
(pass) CLI - platform 命令与 record 动作 > record get 获取记录详情 [1.13ms]
|
||
(pass) CLI - platform 命令与 record 动作 > record toggle 切换停启用状态 [0.13ms]
|
||
(pass) CLI - platform 命令与 record 动作 > record edit 编辑字段 [0.51ms]
|
||
(pass) CLI - platform 命令与 record 动作 > record recompute 触发台账重算 [0.10ms]
|
||
(pass) CLI - platform 命令与 record 动作 > record get 支持仅传 <recordId> 免传应用与业务对象 [0.40ms]
|
||
(pass) CLI - platform 命令与 record 动作 > record batch-edit --dry-run 生成安全合并预览且不发送真实写请求 [0.69ms]
|
||
(pass) CLI - platform 命令与 record 动作 > platform records 支持 --sum 数学核算与 --group-by 分组统计 [0.21ms]
|
||
(pass) CLI - platform 命令与 record 动作 > platform audit 支持 --check-continuous 与 --expect 基线离群诊断 [0.50ms]
|
||
(pass) CLI - platform 命令与 record 动作 > platform update 支持 --where 声明式筛选与 --set 原地修改(含 --dry-run 与 --yes) [0.33ms]
|
||
(pass) CLI - platform 命令与 record 动作 > platform records 支持 --stats 画像统计(计算状态、重名与编码聚类) [0.25ms]
|
||
(pass) CLI - platform 命令与 record 动作 > platform records 支持 --ndjson 流式逐行下发与 --flat 归一化 [0.27ms]
|
||
(pass) CLI - platform 命令与 record 动作 > rejects malformed batch predicates before fetching all records or calling the writer [0.10ms]
|
||
(pass) CLI - platform 命令与 record 动作 > platform gen-props 生成 MVEL 和 JS 格式的字段模板 [0.42ms]
|
||
|
||
src/cli/commands/corps.test.ts:
|
||
(pass) core/auth/login > parseHeadersOrCurl & URL link parsing > successfully parses standard thirdparty.html assistance links [0.07ms]
|
||
(pass) core/auth/login > parseHeadersOrCurl & URL link parsing > extracts custom staffId and standard corpId query params [0.03ms]
|
||
(pass) core/auth/login > parseHeadersOrCurl & URL link parsing > handles curl command lines with assistance URL [0.03ms]
|
||
(pass) core/http/unity-client > resolveCorpCluster > prioritizes explicit cluster config [0.02ms]
|
||
(pass) core/http/unity-client > resolveCorpCluster > extracts cluster from hostname subdomain [0.02ms]
|
||
(pass) core/http/unity-client > resolveCorpCluster > falls back to app when unknown [0.01ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand add-link > returns error exit code when no link URL is provided [0.41ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > returns error exit code when search keyword is empty [0.20ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > searches by name with case-insensitive substring match [0.20ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > searches by staffName and highlights the matched cell [0.07ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > searches by staffId case-insensitively [0.07ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > searches by physical corpId [0.05ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > searches by accountId [0.06ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > supports find alias for search [0.05ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > outputs friendly message when no corps match [0.04ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > supports --json mode with structured output [0.09ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > outputs help message via corps help [0.06ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > generates login link via corps link [corp] with preserveSensitiveStdout=true [1.17ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > supports dynamic staff switching via corps link [corp] --staff=<id> [0.68ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > supports corps add-persistent --dry-run [0.25ms]
|
||
(pass) cli/commands/corps > handleCorpsCommand search & aliases > supports corps hose-staffs with auto-resolved corp credentials [0.90ms]
|
||
|
||
src/cli/commands/assist-targets.test.ts:
|
||
(pass) assist-platform approve 的明确工单目标 > 预览保留工单参数 {"args":["REQUESTED","--corp","CORP"]},不自动查询其他工单 [1.06ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 预览保留工单参数 {"args":["CORP","REQUESTED"]},不自动查询其他工单 [0.19ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 预览保留工单参数 {"args":["CORP","--ticket","REQUESTED"]},不自动查询其他工单 [0.16ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 预览保留工单参数 {"args":["--corp","CORP","--ticket","REQUESTED"]},不自动查询其他工单 [0.34ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 预览保留工单参数 {"args":["REQUESTED"]},不自动查询其他工单 [0.14ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 预览保留工单参数 {"args":["--ticket","REQUESTED"]},不自动查询其他工单 [0.14ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 预览保留工单参数 {"args":["REQUESTED","--corp","CORP","--ticket","REQUESTED"]},不自动查询其他工单 [0.12ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 显式 --corp 下首参即使也是已知企业 ID,仍作为工单 [0.16ms]
|
||
(pass) assist-platform approve 的明确工单目标 > --yes 真实提交路径只审批显式工单,不能自动替换为列表首项 [0.45ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 拒绝歧义或冲突参数 {"args":["REQUESTED","--corp","CORP","--ticket","OTHER-TICKET"]},且不查询或提交 [0.16ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 拒绝歧义或冲突参数 {"args":["CORP","REQUESTED","--ticket","OTHER-TICKET"]},且不查询或提交 [0.31ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 拒绝歧义或冲突参数 {"args":["UNKNOWN-CORP","REQUESTED"]},且不查询或提交 [0.25ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 拒绝歧义或冲突参数 {"args":["CORP","REQUESTED","--corp","OTHER-CORP"]},且不查询或提交 [0.26ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 拒绝歧义或冲突参数 {"args":["CORP","REQUESTED","EXTRA"]},且不查询或提交 [0.23ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 显式企业未知时不能回退当前企业 [0.15ms]
|
||
(pass) assist-platform approve 的明确工单目标 > 只有未指定工单时才自动查询待授权工单 [0.31ms]
|
||
(pass) assist-platform transfer 预览与执行的收件人解析 > --dry-run 遇到同名用户都拒绝且不提交 [0.97ms]
|
||
(pass) assist-platform transfer 预览与执行的收件人解析 > --yes 遇到同名用户都拒绝且不提交 [0.20ms]
|
||
(pass) assist-platform transfer 预览与执行的收件人解析 > 查询失败的 dry-run 也不能显示成功解析的预览 [0.25ms]
|
||
(pass) assist-platform transfer 预览与执行的收件人解析 > 唯一工号的 dry-run 显示实际账号,与 --yes 的请求一致 [0.65ms]
|
||
|
||
src/cli/commands/context.test.ts:
|
||
(pass) CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Context) > hose-use context 打印文本格式仪表盘 [1.74ms]
|
||
(pass) CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Context) > hose-use context --json 输出完备的结构化数据 [0.89ms]
|
||
(pass) CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Context) > hose-use status 解析至 context,whoami 输出逐企业执行身份 [168.08ms]
|
||
(pass) CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Context) > hose-aipro status 输出 AI PRO 专属上下文 [4.99ms]
|
||
(pass) CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Context) > hose-aipro status --json 输出结构化数据 [2.23ms]
|
||
(pass) CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Context) > hose-use aipro status 双向桥接成功转发 [2.57ms]
|
||
(pass) CLI - 上下文自省与 AI PRO 状态命令 (Zero-Source-Reading Context) > hose-aipro 帮助页在顶部动态展示当前企业页眉 [1.52ms]
|
||
|
||
src/cli/commands/update.test.ts:
|
||
(pass) update version comparator > correctly identifies newer semantic versions [0.16ms]
|
||
(pass) update version comparator > compareSemVer handles tags, major, minor, and patch [0.03ms]
|
||
(pass) normalizeRepo and isValidRepo > normalizeRepo trims and cleans various GitHub URL formats [0.10ms]
|
||
(pass) normalizeRepo and isValidRepo > isValidRepo validates owner/repo format and rejects illegal inputs [0.06ms]
|
||
(pass) matchAssetForPlatform > matches darwin arm64 with archive priority [0.14ms]
|
||
(pass) matchAssetForPlatform > matches darwin x64 fallback to raw binary when no archive present [0.05ms]
|
||
(pass) matchAssetForPlatform > matches linux x64 archive [0.03ms]
|
||
(pass) matchAssetForPlatform > matches windows x64 archive [0.03ms]
|
||
|
||
src/cli/commands/flow.test.ts:
|
||
(pass) CLI - flow & trace 全域透视与穿透诊断命令族 > registry 正确注册 flow 命令与 trace 别名 [0.08ms]
|
||
(pass) CLI - flow & trace 全域透视与穿透诊断命令族 > 未选中企业时返回错误并提示切换企业 [0.08ms]
|
||
(pass) CLI - flow & trace 全域透视与穿透诊断命令族 > hose-use flow --help 输出帮助信息 [0.12ms]
|
||
(pass) CLI - flow & trace 全域透视与穿透诊断命令族 > hose-use flow <单号> (位置参数) 自动识别并穿透诊断 [0.47ms]
|
||
(pass) CLI - flow & trace 全域透视与穿透诊断命令族 > hose-use flow get <单号> --json 结构化输出 [0.24ms]
|
||
(pass) CLI - flow & trace 全域透视与穿透诊断命令族 > hose-use bill trace <单号> 平滑集成并完成诊断 [0.17ms]
|
||
(pass) CLI - flow & trace 全域透视与穿透诊断命令族 > 未找到单据时返回 exitCode 1 与排障建议 [0.27ms]
|
||
|
||
src/cli/commands/workflow-debug.test.ts:
|
||
(pass) workflow debug mutation and result contract > dry-run with auto-publish does not create clients or start a job even if --yes is also set [2.23ms]
|
||
(pass) workflow debug mutation and result contract > requires explicit mutation confirmation before creating clients [0.15ms]
|
||
(pass) workflow debug mutation and result contract > previews clock without creating clients () [0.09ms]
|
||
(pass) workflow debug mutation and result contract > previews webhook without creating clients (body) [0.02ms]
|
||
(pass) workflow debug mutation and result contract > previews webhook without creating clients (empty) [0.02ms]
|
||
(pass) workflow debug mutation and result contract > previews webhook without creating clients (file) [0.02ms]
|
||
(pass) workflow debug mutation and result contract > previews ekuaibao-datalink-create-trigger without creating clients (record) [0.02ms]
|
||
(pass) workflow debug mutation and result contract > requires confirmation for a schedule trigger without --flow [0.13ms]
|
||
(pass) workflow debug mutation and result contract > keeps confirmed schedule and webhook trigger routing [0.20ms]
|
||
(pass) workflow debug mutation and result contract > allows confirmed enabled-workflow debug with machine-readable risk information [0.11ms]
|
||
(pass) workflow debug mutation and result contract > retains an unknown production state in the result when the status check fails [0.10ms]
|
||
(pass) workflow debug mutation and result contract > returns a failing exit code for failed and incomplete runs (json=true) [0.09ms]
|
||
(pass) workflow debug mutation and result contract > returns a failing exit code for failed and incomplete runs (json=false) [0.09ms]
|
||
(pass) workflow debug mutation and result contract > blocks workflow test without --force when selected corp is production environment [0.20ms]
|
||
|
||
src/cli/commands/rule.test.ts:
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule scopes 一键获取去重场景索引列表 [4.31ms]
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule scope <1> 输入索引号获取该场景下的全部规则明细 [1.34ms]
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule scope <场景名称> 输入名称同样可以获取明细 [1.09ms]
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule scope <不存在> 返回 1 并提示未找到 [0.94ms]
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule add 纯双参数 (索引 + 正文) 快速新增并强校验 [1.17ms]
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule add --dry-run 只预览且不写入数据库 [1.12ms]
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule add 未确认时拒绝写入并给出下一步 [1.10ms]
|
||
(pass) CLI - hose-use rule 规则与场景索引命令 > hose-use rule add 语法错误拦截并阻止入库 [0.97ms]
|
||
|
||
src/cli/commands/menu.test.ts:
|
||
(pass) cli/commands/menu > handleMenuCommand > fails with exitCode 1 when no corp is selected [0.21ms]
|
||
(pass) cli/commands/menu > handleMenuCommand > lists desktop menus in table format [0.13ms]
|
||
(pass) cli/commands/menu > handleMenuCommand > supports --json output for menu list [0.08ms]
|
||
(pass) cli/commands/menu > handleMenuCommand > delegates menu apps to handleAppCommand [0.06ms]
|
||
(pass) cli/commands/menu > handleMenuCommand > returns error for unknown menu subcommand [0.03ms]
|
||
|
||
src/cli/commands/workflow.test.ts:
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > fails when no corp is selected [0.07ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > fails when no jobId is provided [0.04ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow job --failed with deep error inspection and inputs/outputs [1.55ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow job --node=<name|id> targeting specific execution node [0.37ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow diff <snapshot1> <snapshot2> comparing code and node changes [6.18ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow diff-job <job1> <job2> comparing execution branch and error divergence [0.90ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow test without pipelineId [0.05ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow test without --flow by listing candidate sources [0.45ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow test end-to-end with --flow parameter [0.50ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > allows workflow test when pipeline is enabled in production with full security prompt [0.26ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow test for clock trigger without requiring --flow [0.53ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow test for webhook trigger requiring body or empty [1.03ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow test for datalink trigger displaying dynamic fields [0.22ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow copy: requires pipelineId, confirmation, dry-run, execution, and json mode [0.87ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow delete: requires pipelineId, confirmation, dry-run, execution, and json mode [0.37ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow create: requires confirmation, dry-run, execution, triggers, and json mode [3.02ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow node list, get, add, edit, and rm commands with dry-run and safety checks [3.90ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow tail and watch commands for real-time streaming and snapshots [1.54ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > handles workflow lint-script and eval-script commands end-to-end [24.22ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > workflow logs correctly detects and formats running/delayed jobs and in-progress count [0.95ms]
|
||
(pass) CLI - workflow job 执行详情与异常精准透视 > workflow job correctly displays mid-flight delayed job progress and non-interruptive hints [0.68ms]
|
||
(pass) CLI - workflow list 轻量化与名称搜索 > 默认以轻量化模式输出 JSON,剥离庞大的 tasks 数组并提供 nodeCount [0.22ms]
|
||
(pass) CLI - workflow list 轻量化与名称搜索 > 传入 --full 或 --with-tasks 时保留完整的 tasks 节点结构 [0.06ms]
|
||
(pass) CLI - workflow list 轻量化与名称搜索 > 支持通过 --keyword 或 -q 过滤工作流名称 [0.06ms]
|
||
|
||
src/cli/commands/workflow-nodes-failure.test.ts:
|
||
(pass) failed grants retain gateway details and never report success [0.23ms]
|
||
|
||
src/cli/commands/config.test.ts:
|
||
(pass) cli/commands/config > aliases and path mapping > maps config show to config paths diagnosis [0.17ms]
|
||
(pass) cli/commands/config > aliases and path mapping > supports config paths directly [0.04ms]
|
||
(pass) cli/commands/config > aliases and path mapping > supports config show --json structured output [0.05ms]
|
||
(pass) cli/commands/config > aliases and path mapping > supports config get for inspecting global stateful configuration [0.07ms]
|
||
|
||
src/cli/commands/assist-platform.test.ts:
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform help 输出完整使用指南与子命令 [0.40ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform login 无凭证时给出指引 [0.21ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform login --logout 能够注销凭证 [0.26ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > 未登录时运行 tickets 提示需要先登录 [0.18ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform enter --save --dry-run 能够输出变更预览 [0.20ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform apply --dry-run 能够输出申请工单变更预览 [0.46ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform approve --dry-run 能够输出工单审批变更预览 [0.09ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform apply 传入超过 24 小时或多天时返回明确拒绝提示 [0.35ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform apply --days 1 --dry-run 成功换算为 24 小时并预览 [0.38ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform transfer 缺少 --to 参数时报错提示 [0.32ms]
|
||
(pass) CLI Commands - assist-platform (合思协助平台) > assist-platform transfer --dry-run 能够输出工单转交变更预览 [0.54ms]
|
||
|
||
src/cli/commands/service-dry-run.test.ts:
|
||
(pass) service lifecycle previews never dispatch process or state mutations [5.78ms]
|
||
|
||
src/domains/platform/workflow/enums.test.ts:
|
||
(pass) Workflow Action Enums & Diagnostics > contains 18 standard system notification action enums [0.04ms]
|
||
(pass) Workflow Action Enums & Diagnostics > translates workflow action codes accurately [0.02ms]
|
||
(pass) Workflow Action Enums & Diagnostics > checks if a code is a known workflow action [0.01ms]
|
||
(pass) Workflow Action Enums & Diagnostics > matches workflow action by code or label [0.04ms]
|
||
(pass) Workflow Action Enums & Diagnostics > resolves fallback options when client is undefined [0.10ms]
|
||
(pass) Workflow Action Enums & Diagnostics > detects DEADLOCK_CONDITION_STATE_FILTER when condition matches state against '被驳回' [0.13ms]
|
||
(pass) Workflow Action Enums & Diagnostics > detects INVALID_ACTION_ENUM_TEXT_VALUE when condition matches action with plain text '被驳回' [0.05ms]
|
||
(pass) Workflow Action Enums & Diagnostics > passes cleanly when condition correctly uses action enum macro @value(flow.rejected) [0.05ms]
|
||
|
||
src/cli/commands/aipro/session-corp.test.ts:
|
||
(pass) blocks cross-corp approve before creating a client or changing the run [0.74ms]
|
||
(pass) blocks cross-corp reject before creating a client or changing the run [0.44ms]
|
||
(pass) uses the checked corp client for same-corp approval [0.53ms]
|
||
|
||
src/cli/commands/update/releases.test.ts:
|
||
(pass) verified self-update assets > rejects missing, duplicate and mismatched checksums [0.78ms]
|
||
==> [1/5] 正在下载更新: https://ghfast.top/https://github.com/test/repo/releases/download/v9.9.9/checksums.txt
|
||
|
||
↳ 进度: 0% (0.0 / ? MB)...
|
||
✓ 下载完成 (0.0 MB)
|
||
==> [1/5] 正在下载更新: https://ghfast.top/https://github.com/test/repo/releases/download/v9.9.9/hose-use-linux-x64.tar.gz
|
||
|
||
↳ 进度: 0% (0.0 / ? MB)...
|
||
✓ 下载完成 (0.0 MB)
|
||
(pass) verified self-update assets > pins manifest and binary to the release tag and never sends GitHub credentials to proxies [1.29ms]
|
||
(pass) verified self-update assets > does not start downloading a release without a checksum manifest [0.15ms]
|
||
(pass) verified self-update assets > GitHub API credentials are also excluded from mirror metadata requests [0.23ms]
|
||
(pass) verified self-update assets > extracts only a known binary and rejects archives containing no expected member [14.03ms]
|
||
(pass) verified self-update assets > extracts the selected Windows ZIP binary without materializing wrappers or extra files [8.13ms]
|
||
|
||
src/cli/commands/update/dry-run.test.ts:
|
||
(pass) source and binary update previews do not fetch, spawn or install skills [1.38ms]
|
||
|
||
src/cli/commands/workflow/analyze.test.ts:
|
||
(pass) workflow analyze enterprise application status > uses the enterprise opening status and ignores marketplace online status [0.02ms]
|
||
|
||
src/cli/commands/workflow/summaries.test.ts:
|
||
(pass) test and job summaries retain nested execution containers and repeated loop executions [0.55ms]
|
||
|
||
src/cli/commands/workflow/mvel-eval.test.ts:
|
||
(pass) MVEL CLI JSON returns the terminal expression and preserves failure exit codes [2.39ms]
|
||
|
||
src/cli/commands/workflow/tail-timeout.test.ts:
|
||
(pass) CLI tail exits nonzero and emits timeout for a job still running at the deadline [6.67ms]
|
||
|
||
src/cli/commands/workflow/webhook.test.ts:
|
||
(pass) workflow webhook command > prints usage when pipelineId is not provided [0.34ms]
|
||
(pass) workflow webhook command > previews webhook payload in dry-run mode [0.09ms]
|
||
(pass) workflow webhook command > rejects non-webhook workflows with clear error [0.04ms]
|
||
|
||
src/cli/commands/workflow/script-json.test.ts:
|
||
(pass) all local and remote script JSON branches return reports and honor output files [3.40ms]
|
||
(pass) script failures retain JSON output and failure exit code [0.80ms]
|
||
|
||
src/domains/platform/workflow/branch/index.test.ts:
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates gt without inventing a result (10) [0.27ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates gte without inventing a result (5) [0.03ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates lt without inventing a result (1) [0.02ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates lte without inventing a result (5)
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates in without inventing a result ("A") [0.04ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates not_in without inventing a result ("C") [0.02ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates include without inventing a result (["A"]) [0.03ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates not_include without inventing a result (["A"]) [0.02ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates empty without inventing a result (false)
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates empty without inventing a result (0)
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates empty without inventing a result ([]) [0.02ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates not_empty without inventing a result (0)
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates unsupported without inventing a result (1)
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates gt without inventing a result ("text")
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates eq without inventing a result (null)
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates eq without inventing a result ({"amount":10}) [0.01ms]
|
||
(pass) Workflow Condition Branch Diagnosis > keeps all expected reference IDs rather than only the first [0.04ms]
|
||
(pass) Workflow Condition Branch Diagnosis > evaluates nested OR / AND groups and does not infer False from an incomplete execution tree [0.04ms]
|
||
(pass) Workflow Condition Branch Diagnosis > does not claim skipped tasks for a still-running condition or absent upstream evidence [0.02ms]
|
||
(pass) Workflow Condition Branch Diagnosis > resolves nested branches against the matching loop instance [0.08ms]
|
||
(pass) Workflow Condition Branch Diagnosis > recognizes an executed child by parentId even if the flat response order differs [0.02ms]
|
||
(pass) Workflow Condition Branch Diagnosis > diagnoses missing upstream property when property is absent from outputs [0.07ms]
|
||
(pass) Workflow Condition Branch Diagnosis > diagnoses value mismatch when upstream property exists but values differ [0.04ms]
|
||
(pass) Workflow Condition Branch Diagnosis > returns empty diagnosis when child task was executed successfully [0.02ms]
|
||
|
||
src/domains/platform/workflow/analysis/index.test.ts:
|
||
(pass) Workflow static analysis > accepts nullable app center metadata [0.34ms]
|
||
(pass) Workflow static analysis > builds a recursive AST and extracts code references [0.07ms]
|
||
(pass) Workflow static analysis > reports empty scripts, branches, and disabled workflow state [0.03ms]
|
||
(pass) Workflow static analysis > detects BROKEN_LOOP_ITEM_REFERENCE and BROKEN_CHOOSE_REFERENCE [0.48ms]
|
||
(pass) Workflow static analysis > detects UNSAFE_SKIP_WITHOUT_STATUS_GUARD and LINKAGE_PRIORITY_OVERRIDE [0.21ms]
|
||
(pass) Workflow static analysis > detects DEADLOCK_TRIGGER_STATE_FILTER when trigger specifies state APPROVING [0.03ms]
|
||
(pass) Workflow static analysis > detects MISSING_BACKLOG_DATA_BRACKETS on backlog openapi http task [0.04ms]
|
||
(pass) Workflow static analysis > detects PERMISSION_MISSING_NODE when workflow uses nodes not granted to the enterprise [0.03ms]
|
||
(pass) Workflow static analysis > detects MISPLACED_FORMULA_IN_DATALINK_MAPPING when formulas are placed in DataLink fields [0.04ms]
|
||
(pass) Workflow static analysis > calculates summary metrics and classifies diagnostics into hard_block and soft_advice [0.06ms]
|
||
(pass) Workflow static analysis > detects DOCS_DOMAIN_USED as a hard block when docs.ekuaibao.com is used in HTTP tasks [0.04ms]
|
||
(pass) Workflow static analysis > detects UNLICENSED_POWER_CODE when enterprise has not opened powerCode application [0.05ms]
|
||
(pass) Workflow static analysis > passes UNLICENSED_POWER_CODE when enterprise has opened powerCode application [0.03ms]
|
||
(pass) Workflow static analysis > provides POWER_CODE_DEPENDENCY soft advice when openedPowerCodes is not provided [0.03ms]
|
||
(pass) Workflow static analysis > diagnoses malformed powerCode encoding and continues checking later nodes [0.32ms]
|
||
|
||
src/domains/platform/workflow/analysis/formula-boundaries.test.ts:
|
||
(pass) ordinary text and explicit text formulas never cause hard blocks [0.66ms]
|
||
(pass) only a complete formula in a known strong type causes a hard block [0.06ms]
|
||
|
||
src/domains/platform/workflow/analysis/choose-references.test.ts:
|
||
(pass) choose reference containers and source classification > finds missing JSON node references in direct and nested form containers [0.24ms]
|
||
(pass) choose reference containers and source classification > does not inspect script, descriptions or descriptor label/type metadata [0.07ms]
|
||
(pass) choose reference containers and source classification > blocks a clearly identified missing node in @{choose(action_missing.data)} [0.34ms]
|
||
(pass) choose reference containers and source classification > blocks a clearly identified missing node in @{choose('action_missing.data')} [0.02ms]
|
||
(pass) choose reference containers and source classification > blocks a clearly identified missing node in @{choose("action_missing.data")} [0.02ms]
|
||
(pass) choose reference containers and source classification > blocks a clearly identified missing node in @{choose('{"key":"action_missing","properties":[{"key":"data"}]}')} [0.02ms]
|
||
(pass) choose reference containers and source classification > handles multiple descriptors, escaped quotes and parentheses inside labels [0.05ms]
|
||
(pass) choose reference containers and source classification > recognizes real custom node names while preserving body and other context roots [0.06ms]
|
||
(pass) choose reference containers and source classification > requires explicit descriptor node keys even when they resemble context roots [0.05ms]
|
||
(pass) choose reference containers and source classification > warns for unknown bare roots and unsupported or malformed expressions without blocking [0.10ms]
|
||
(pass) choose reference containers and source classification > blocks old loop item paths in @{choose(control_loop.$item)} [0.02ms]
|
||
(pass) choose reference containers and source classification > blocks old loop item paths in @{choose('control_loop.$item.data')} [0.01ms]
|
||
(pass) choose reference containers and source classification > blocks old loop item paths in @{choose('{"key":"control_loop.$item","properties":[{"key":"data"}]}')}
|
||
(pass) choose reference containers and source classification > accepts the new loop descriptor with $item in properties [0.04ms]
|
||
(pass) choose reference containers and source classification > never aliases missing trigger_1 to an actual trigger with another name [0.04ms]
|
||
(pass) choose reference containers and source classification > finds actual nodes in nested task containers [0.02ms]
|
||
|
||
src/domains/platform/workflow/nodes/index.test.ts:
|
||
(pass) workflow-nodes - 任务节点声明式编排纯函数 > flattenWorkflowTaskTree correctly flattens nested tree with depth and summary [0.05ms]
|
||
(pass) workflow-nodes - 任务节点声明式编排纯函数 > findWorkflowTask finds nodes by name, hierarchical index, or global number [0.03ms]
|
||
(pass) workflow-nodes - 任务节点声明式编排纯函数 > reindexTasks recalculates orderIndex and levelIndex consistently [0.04ms]
|
||
(pass) workflow-nodes - 任务节点声明式编排纯函数 > addWorkflowTask appends to root, inserts after node, and inserts into parent container [0.07ms]
|
||
(pass) workflow-nodes - 任务节点声明式编排纯函数 > editWorkflowTask updates label, code, and custom properties [0.03ms]
|
||
(pass) workflow-nodes - 任务节点声明式编排纯函数 > removeWorkflowTask safely removes task and guards trigger node [0.05ms]
|
||
|
||
src/domains/platform/workflow/nodes/locator-index.test.ts:
|
||
(pass) string indices select displayed hierarchy while SDK numbers select traversal order [0.05ms]
|
||
|
||
src/domains/platform/workflow/nodes/trigger-removal.test.ts:
|
||
(pass) protects the only webhook trigger from removal [0.03ms]
|
||
(pass) protects the only clock trigger from removal
|
||
(pass) protects the only ekuaibao-datalink-create-trigger trigger from removal
|
||
(pass) ordinary action removal remains supported while the last trigger stays protected [0.03ms]
|
||
|
||
src/domains/platform/workflow/state/index.test.ts:
|
||
(pass) workflow draft state machine > patches a nested node field without mutating the source snapshot [0.23ms]
|
||
(pass) workflow draft state machine > rejects a path whose parent does not exist [0.05ms]
|
||
(pass) workflow draft state machine > sends the complete workflow snapshot to the Piper update endpoint [0.21ms]
|
||
(pass) workflow draft state machine > automatically purges docs.ekuaibao.com domain from $snapshot during update [0.09ms]
|
||
(pass) workflow draft state machine > reads snapshot history and accepts the web API's serialized inputs [0.17ms]
|
||
(pass) workflow draft state machine > reads workflow logs with the web query contract [0.08ms]
|
||
(pass) workflow draft state machine > uses the state endpoint for publishing a workflow [0.06ms]
|
||
(pass) workflow draft state machine > persists workflow alert fingerprints and only reports new counts [7.32ms]
|
||
(pass) workflow draft state machine > tracks dirty revisions and commits the server snapshot [0.10ms]
|
||
(pass) workflow draft state machine > detects optimistic concurrency conflicts and preserves failures [0.04ms]
|
||
(pass) workflow draft state machine > throws structured AuthenticationError or EkbApiError when Piper unwrap receives null data or non-200 code [0.08ms]
|
||
(pass) workflow draft state machine > calls the 5 Piper Job diagnostic endpoints and parses execution trees, failed nodes, child levels, and logs [0.48ms]
|
||
(pass) workflow draft state machine > execution tree inspection & failure extraction helpers > flattenExecutionTree flattens nested children and tasks recursively [0.03ms]
|
||
(pass) workflow draft state machine > execution tree inspection & failure extraction helpers > isTaskExecutionFailed identifies various failure indicators [0.02ms]
|
||
(pass) workflow draft state machine > execution tree inspection & failure extraction helpers > extractFailureExecutions merges failures from tree and failed items without duplicates [0.03ms]
|
||
(pass) workflow draft state machine > execution tree inspection & failure extraction helpers > findExecutionNode matches by id, exact name, or partial display name [0.02ms]
|
||
|
||
src/domains/platform/workflow/script/index.test.ts:
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > hasReturnStatement > identifies return statement correctly [0.02ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintJavaScriptCode > reports error for empty script [0.02ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintJavaScriptCode > warns about missing return statement [0.02ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintJavaScriptCode > catches syntax errors with line numbers [0.03ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintJavaScriptCode > accepts valid JavaScript with declared bound variables [0.02ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintMvelCode > detects unclosed brackets in MVEL code [0.06ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintMvelCode > detects mismatched brackets [0.02ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintMvelCode > flags dangling node references if node does not exist in workflow [0.04ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintMvelCode > passes clean MVEL code referencing existing nodes [0.05ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > lintWorkflowScripts > scans and reports issues across all workflow code nodes [0.08ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > executeJavaScriptSandbox > executes code in sandbox and returns computed values [0.96ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > executeJavaScriptSandbox > supports accessing variables through inputs namespace as well as top-level globals [0.30ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > executeJavaScriptSandbox > catches runtime errors and reports line number [0.40ms]
|
||
(pass) workflow-script - 本地静态语法校验与沙箱仿真引擎 > executeJavaScriptSandbox > terminates on infinite loops via timeout [100.25ms]
|
||
(pass) MVEL lexical boundaries > ignores literals and comments in "return \"{\";" [0.07ms]
|
||
(pass) MVEL lexical boundaries > ignores literals and comments in "return wrap(\"https://example.test/path\");" [0.01ms]
|
||
(pass) MVEL lexical boundaries > ignores literals and comments in "/* { action_missing */\nreturn 1;"
|
||
(pass) MVEL lexical boundaries > ignores literals and comments in "return \"action_missing\";"
|
||
(pass) MVEL lexical boundaries > ignores literals and comments in "return 'escaped \\' { action_missing';"
|
||
(pass) MVEL lexical boundaries > ignores literals and comments in "/* comment with \"quotes\" and // */\r\nreturn [1, 2]; // { action_missing" [0.01ms]
|
||
(pass) MVEL lexical boundaries > does not count quoted or commented return as executable code [0.03ms]
|
||
(pass) MVEL lexical boundaries > keeps real references and error coordinates while diagnosing unfinished literals [0.06ms]
|
||
(pass) MVEL lexical boundaries > does not invalidate an entire workflow for literal-only node names [0.03ms]
|
||
(pass) isolated script runtime boundaries > does not expose the host through return Object.constructor("return typeof process")(); [0.34ms]
|
||
(pass) isolated script runtime boundaries > does not expose the host through return console.log.constructor("return typeof Bun")(); [0.28ms]
|
||
(pass) isolated script runtime boundaries > does not expose the host through return items.constructor.constructor("return typeof fetch")(); [0.27ms]
|
||
(pass) isolated script runtime boundaries > does not mutate inputs or host prototypes [0.38ms]
|
||
(pass) isolated script runtime boundaries > bounds logs, allocations and synchronous return values [2.85ms]
|
||
(pass) isolated script runtime boundaries > executeMvelSandbox > executes basic MVEL variable assignments, collections and return statements [0.57ms]
|
||
(pass) isolated script runtime boundaries > executeMvelSandbox > accesses inputs in MVEL code [0.33ms]
|
||
|
||
src/domains/platform/workflow/script/mvel-subset.test.ts:
|
||
(pass) MVEL collection and completion subset > returns the final Map expression constructed with HashMap [0.50ms]
|
||
(pass) MVEL collection and completion subset > returns the final Map expression constructed with Map [0.32ms]
|
||
(pass) MVEL collection and completion subset > returns the final Map expression constructed with java.util.HashMap [0.32ms]
|
||
(pass) MVEL collection and completion subset > supports List constructor ArrayList [0.61ms]
|
||
(pass) MVEL collection and completion subset > supports List constructor List [0.59ms]
|
||
(pass) MVEL collection and completion subset > supports List constructor java.util.ArrayList [0.50ms]
|
||
(pass) MVEL collection and completion subset > counts Map keys including length and prototype names, without double counting replacements [0.38ms]
|
||
(pass) MVEL collection and completion subset > supports nested receivers, nested arguments, indexed inputs and collection return values [0.50ms]
|
||
(pass) MVEL collection and completion subset > preserves literal contents while ignoring comments during conversion [0.30ms]
|
||
(pass) MVEL collection and completion subset > supports tail expression result [0.33ms]
|
||
(pass) MVEL collection and completion subset > supports tail expression (result); [0.22ms]
|
||
(pass) MVEL collection and completion subset > supports tail expression result;;; // final comment [0.18ms]
|
||
(pass) MVEL collection and completion subset > supports tail expression result /* ; return 0; */ [0.17ms]
|
||
(pass) MVEL collection and completion subset > evaluates a terminal expression once and preserves put's previous-value return [0.40ms]
|
||
(pass) MVEL collection and completion subset > preserves division, ternary, classic for and explicit return compatibility [0.40ms]
|
||
(pass) MVEL collection and completion subset > does not reject existing JavaScript-compatible blocks before a terminal result [0.28ms]
|
||
(pass) MVEL collection and completion subset > rejects unsupported syntax or completion: new java.util.Date(); [0.05ms]
|
||
(pass) MVEL collection and completion subset > rejects unsupported syntax or completion: new HashMap(5);
|
||
(pass) MVEL collection and completion subset > rejects unsupported syntax or completion: new java.util.ArrayList(2);
|
||
(pass) MVEL collection and completion subset > rejects unsupported syntax or completion: Map<String, Object> m = new HashMap(); m;
|
||
(pass) MVEL collection and completion subset > rejects unsupported syntax or completion: if (true) { 7; }
|
||
(pass) MVEL collection and completion subset > rejects unsupported syntax or completion: var value = 7;
|
||
(pass) MVEL collection and completion subset > rejects unsupported syntax or completion: for (item : items) { item; } item;
|
||
(pass) MVEL collection and completion subset > fails explicitly for invalid receiver types and List bounds [0.48ms]
|
||
(pass) MVEL collection and completion subset > keeps the execution time budget and JavaScript completion behavior [10.35ms]
|
||
(pass) MVEL collection and completion subset > lint accepts a final expression without changing explicit hasReturn meaning [0.07ms]
|
||
|
||
src/domains/platform/workflow/watch/index.test.ts:
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > TaskExecutionTracker > tracks new nodes and produces correct initial events [0.09ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > TaskExecutionTracker > does not re-emit events if node status has not changed on subsequent poll [0.03ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > TaskExecutionTracker > detects status transitions from RUNNING to COMPLETED [0.02ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > extractTaskErrorMessage > extracts error from error.message [0.01ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > extractTaskErrorMessage > extracts error from outputs.error
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > normalizeJobStatus and isJobTerminal > normalizes various string and numeric states [0.01ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > normalizeJobStatus and isJobTerminal > checks terminal states [0.01ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > formatWatchEvent > formats various watch events cleanly [0.08ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > watchSingleJob and watchWorkflowPipeline with Mock Client > watchSingleJob tracks a job through completion [0.31ms]
|
||
(pass) workflow-watch - 实时监控与日志流跟踪引擎 > watchSingleJob and watchWorkflowPipeline with Mock Client > watchWorkflowPipeline with once=true inspects the latest job snapshot [0.22ms]
|
||
|
||
src/domains/platform/workflow/watch/timeout.test.ts:
|
||
(pass) a running job times out without a completion event or false success report [5.82ms]
|
||
(pass) once snapshots are not timeouts and completed jobs still emit completion [0.12ms]
|
||
(pass) cancellation is distinct from timeout and completion [0.06ms]
|
||
(pass) latest-job snapshots propagate cancellation from the selected job [0.16ms]
|
||
|
||
842 pass
|
||
0 fail
|
||
3986 expect() calls
|
||
Ran 842 tests across 108 files. [9.57s]
|