/**
 * Jest setup file for polling contracts tests
 */

// Mock console methods to reduce noise in tests
// eslint-disable-next-line no-console
const originalConsoleLog = console.log;
// eslint-disable-next-line no-console
const originalConsoleWarn = console.warn;
// eslint-disable-next-line no-console
const originalConsoleError = console.error;

beforeAll(() => {
  // Allow console.log for debugging, but suppress other console methods
  // console.log = jest.fn();
  // eslint-disable-next-line no-console
  console.warn = jest.fn();
  // eslint-disable-next-line no-console
  console.error = jest.fn();
});

afterAll(() => {
  // Restore console methods
  // eslint-disable-next-line no-console
  console.log = originalConsoleLog;
  // eslint-disable-next-line no-console
  console.warn = originalConsoleWarn;
  // eslint-disable-next-line no-console
  console.error = originalConsoleError;
});

// Dummy test to satisfy Jest requirement
describe('Setup', () => {
  it('should initialize test environment', () => {
    expect(true).toBe(true);
  });
});
