setup.ts 297 B

1234567891011121314151617
  1. import dotenv from 'dotenv';
  2. // 加载测试环境变量
  3. dotenv.config({ path: '.env.test' });
  4. // 设置测试超时
  5. jest.setTimeout(30000);
  6. // 全局测试配置
  7. beforeAll(async () => {
  8. console.log('🧪 开始测试...');
  9. });
  10. afterAll(async () => {
  11. console.log('✅ 测试完成');
  12. });