增加 后端,后台管理系统,uniapp会员端的自动化测试。

This commit is contained in:
2026-07-21 18:09:29 +08:00
parent df0e68469b
commit 6b60b3b4da
64 changed files with 13095 additions and 376 deletions
+15
View File
@@ -0,0 +1,15 @@
const path = require('path');
const fs = require('fs');
module.exports = async function globalTeardown() {
console.log('\n=== 全局测试环境清理 ===');
// 清理状态文件
const stateFile = path.resolve(__dirname, '.test-state.json');
if (fs.existsSync(stateFile)) {
fs.unlinkSync(stateFile);
}
// 注意:不主动关闭 IDE,保持开发者工具运行以便后续使用
console.log('测试环境清理完成(IDE 保持运行)');
};