lamplighter-mcp
Version:
An intelligent context engine for AI-assisted software development
39 lines (32 loc) • 1.05 kB
text/typescript
// Jest setup file
import '@testing-library/jest-dom';
import 'openai/shims/node'; // Add node fetch shim for OpenAI SDK
// Set default timeout for async tests
jest.setTimeout(10000);
// Add any global test setup here
beforeAll(() => {
// Add any setup that needs to run before all tests
});
afterAll(() => {
// Add any cleanup that needs to run after all tests
});
// You can add custom matchers here if needed
expect.extend({
// Add custom matchers as needed
});
// You can add other global setup here, like:
// - Mocking global objects (e.g., console)
// - Setting up environment variables for all tests
// - Configuring test utilities
// Example: Suppress console.log during tests if needed
// let consoleLogSpy: jest.SpyInstance;
// beforeAll(() => {
// consoleLogSpy = jest.spyOn(console, 'log').mockImplementation(() => {});
// });
// afterAll(() => {
// consoleLogSpy.mockRestore();
// });
// Ensure mocks are cleared between tests (though often done in describe blocks)
// afterEach(() => {
// jest.clearAllMocks();
// });