/**
* Vitest global setup for apple-tools-mcp tests
*/
import { beforeAll, afterAll, beforeEach, afterEach, vi } from 'vitest'
// Set up test environment variables
beforeAll(() => {
// Ensure HOME is set for tests
if (!process.env.HOME) {
process.env.HOME = '/tmp/test-home'
}
})
// Reset mocks between tests
beforeEach(() => {
vi.clearAllMocks()
})
afterEach(() => {
vi.restoreAllMocks()
})
// Clean up after all tests
afterAll(() => {
vi.resetAllMocks()
})