File size: 297 Bytes
1dbc34b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * Vitest global setup file
 * Runs before each test file
 */

import { vi, beforeEach } from 'vitest';

// Set test environment variables
process.env.NODE_ENV = 'test';
process.env.DATA_DIR = '/tmp/test-data';

// Reset all mocks before each test
beforeEach(() => {
  vi.clearAllMocks();
});