UNPKG

@logistically/i18n-cli

Version:

Enterprise-grade CLI tool for extracting and managing translations in Logistically microservices

39 lines 1.19 kB
"use strict"; // Test setup file for Jest // Mock chalk to avoid ES module issues jest.mock('chalk', () => { const mockChalk = (text) => text; mockChalk.blue = (text) => text; mockChalk.green = (text) => text; mockChalk.red = (text) => text; mockChalk.yellow = (text) => text; mockChalk.cyan = (text) => text; mockChalk.magenta = (text) => text; mockChalk.white = (text) => text; mockChalk.gray = (text) => text; mockChalk.bold = (text) => text; mockChalk.dim = (text) => text; mockChalk.underline = (text) => text; mockChalk.reset = (text) => text; // Support chained methods mockChalk.bold.blue = (text) => text; mockChalk.bold.cyan = (text) => text; mockChalk.bold.green = (text) => text; mockChalk.bold.red = (text) => text; mockChalk.bold.yellow = (text) => text; mockChalk.bold.white = (text) => text; return { default: mockChalk, ...mockChalk }; }); // Global test setup beforeEach(() => { // Reset all mocks before each test jest.clearAllMocks(); }); afterEach(() => { // Clean up after each test jest.restoreAllMocks(); }); //# sourceMappingURL=test-setup.js.map