Initial commit: Telegram Management System
Some checks failed
Deploy / deploy (push) Has been cancelled

Full-stack web application for Telegram management
- Frontend: Vue 3 + Vben Admin
- Backend: NestJS
- Features: User management, group broadcast, statistics

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
你的用户名
2025-11-04 15:37:50 +08:00
commit 237c7802e5
3674 changed files with 525172 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
// Global test setup
// Set test environment
process.env.NODE_ENV = 'test';
process.env.LOG_LEVEL = 'error'; // Reduce log noise during tests
// Mock console methods to reduce noise
global.console = {
...console,
log: jest.fn(),
debug: jest.fn(),
info: jest.fn(),
warn: jest.fn(),
error: jest.fn()
};
// Global test utilities
global.testUtils = {
// Generate random ID
randomId: () => Math.random().toString(36).substring(7),
// Generate random email
randomEmail: () => `test${Date.now()}@example.com`,
// Generate random phone
randomPhone: () => `+1${Math.floor(Math.random() * 9000000000) + 1000000000}`,
// Sleep helper
sleep: (ms) => new Promise(resolve => setTimeout(resolve, ms)),
// Deep clone helper
deepClone: (obj) => JSON.parse(JSON.stringify(obj))
};
// Set longer timeout for integration tests
jest.setTimeout(30000);
// Clean up after all tests
afterAll(async () => {
// Close any open handles
await new Promise(resolve => setTimeout(resolve, 1000));
});