增加 后端,后台管理系统,uniapp会员端的自动化测试。
This commit is contained in:
@@ -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 保持运行)');
|
||||
};
|
||||
Reference in New Issue
Block a user