新增e2e测试脚本,修复部分问题

This commit was merged in pull request #51.
This commit is contained in:
2026-07-22 20:00:13 +08:00
parent 53d1ce6fb2
commit 4c07ec5455
105 changed files with 21700 additions and 318 deletions
+15
View File
@@ -0,0 +1,15 @@
module.exports = async () => {
console.log('[global-teardown] 开始 E2E 测试环境清理...');
// 关闭小程序连接(如果 automator 实例作为全局变量存在)
if (global.__MINI_PROGRAM__) {
try {
await global.__MINI_PROGRAM__.close();
console.log('[global-teardown] 小程序连接已关闭');
} catch (err) {
console.warn('[global-teardown] 关闭小程序连接时出错:', err.message);
}
}
console.log('[global-teardown] E2E 测试环境清理完成');
};