fix(ci): compile Hermes sync transaction on Unix

This commit is contained in:
晴天
2026-07-12 13:01:21 -07:00
parent f514761d59
commit f1733c843c
2 changed files with 11 additions and 2 deletions

View File

@@ -39,3 +39,10 @@ test('Hermes Rust 与 Web 关键 Provider 注册表保持一致', () => {
assert.match(rust, /id:\s*"alibaba",[\s\S]*?name:\s*"Qwen Cloud"/)
assert.match(web, /hermesProvider\('alibaba',\s*'Qwen Cloud'/)
})
test('Hermes 配置事务的私密权限标记可跨平台编译', () => {
const rust = read('src-tauri/src/commands/hermes.rs')
assert.match(rust, /for \(file, content, private\) in entries/)
assert.match(rust, /#\[cfg\(unix\)\][\s\S]*?if \*private/)
assert.match(rust, /#\[cfg\(not\(unix\)\)\][\s\S]*?let _ = private;/)
})