feat: create tm-core and apps/cli (#1093)
- add typescript - add npm workspaces
This commit is contained in:
21
packages/tm-core/tests/setup.ts
Normal file
21
packages/tm-core/tests/setup.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* @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;
|
||||
});
|
||||
Reference in New Issue
Block a user