import '@testing-library/jest-dom' // Add TextEncoder/TextDecoder globals for Node.js environment const { TextEncoder, TextDecoder } = require('util'); global.TextEncoder = TextEncoder; global.TextDecoder = TextDecoder; // Mock axios globally jest.mock('axios', () => ({ create: jest.fn(() => ({ get: jest.fn(), post: jest.fn(), put: jest.fn(), delete: jest.fn(), interceptors: { request: { use: jest.fn() }, response: { use: jest.fn() } } })) }))