UNPKG

git-ingest

Version:

Fast, AI-ready CLI tool that converts entire codebases into structured text files. Perfect for feeding projects to LLMs, code reviews, and documentation. Features streaming architecture, smart filtering, and cross-platform clipboard integration.

39 lines (31 loc) 914 B
// Vitest setup file for global test configuration import { beforeEach, vi } from "vitest"; import chalk from "chalk"; // Force chalk to always output color in tests chalk.level = 1; // Set test environment process.env.NODE_ENV = "test"; // Global test setup - runs before each test beforeEach(() => { // Clear all mocks before each test vi.clearAllMocks(); }); // Mock console methods to reduce noise in tests (optional) // You can uncomment these if you want to suppress console output during tests // global.console = { // ...console, // log: vi.fn(), // warn: vi.fn(), // error: vi.fn(), // }; // Global test utilities that might be useful global.testUtils = { // Helper to create temporary directories or files if needed createTempDir: () => { // Implementation would go here }, // Helper to clean up test artifacts cleanup: () => { // Implementation would go here } };