mirror of
https://github.com/eyaltoledano/claude-task-master.git
synced 2025-12-05 11:30:49 +00:00
22 lines
490 B
TypeScript
22 lines
490 B
TypeScript
|
|
/**
|
||
|
|
* @fileoverview Vitest test setup file
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { afterAll, beforeAll, vi } from 'vitest';
|
||
|
|
|
||
|
|
// Setup any global test configuration here
|
||
|
|
// For example, increase timeout for slow CI environments
|
||
|
|
if (process.env.CI) {
|
||
|
|
// Vitest timeout is configured in vitest.config.ts
|
||
|
|
}
|
||
|
|
|
||
|
|
// Suppress console errors during tests unless explicitly testing them
|
||
|
|
const originalError = console.error;
|
||
|
|
beforeAll(() => {
|
||
|
|
console.error = vi.fn();
|
||
|
|
});
|
||
|
|
|
||
|
|
afterAll(() => {
|
||
|
|
console.error = originalError;
|
||
|
|
});
|