Create central dashboard with statistics and quick actions Build events management with filtering and CRUD UI Implement members management with bulk actions Develop video management with accessibility indicators Add document repository with visibility controls Create content management with WYSIWYG editor Add settings interface for site configuration Additional improvements: Implement full Events Management System with CRUD Enhance frontend architecture with TypeScript Improve accessibility in navigation menu Add comprehensive test suite for Events API
25 lines
551 B
TypeScript
25 lines
551 B
TypeScript
// Global test setup
|
|
import mongoose from 'mongoose';
|
|
import { jest, afterAll } from '@jest/globals';
|
|
|
|
// Increase timeout for tests
|
|
jest.setTimeout(30000);
|
|
|
|
// Silence console logs during tests
|
|
global.console = {
|
|
...console,
|
|
log: jest.fn(),
|
|
info: jest.fn(),
|
|
debug: jest.fn(),
|
|
// Keep error and warn for debugging
|
|
error: console.error,
|
|
warn: console.warn,
|
|
};
|
|
|
|
// Clean up after all tests
|
|
afterAll(async () => {
|
|
// Close mongoose connection if open
|
|
if (mongoose.connection.readyState !== 0) {
|
|
await mongoose.disconnect();
|
|
}
|
|
});
|