UNPKG

apple-mcp

Version:

Apple MCP tools for contacts, notes, messages, and mail integration

33 lines (27 loc) โ€ข 956 B
import { beforeAll, afterAll } from "bun:test"; import { TEST_DATA } from "./fixtures/test-data.js"; import { createTestDataManager } from "./helpers/test-utils.js"; const testDataManager = createTestDataManager(); beforeAll(async () => { console.log("๐Ÿ”ง Setting up Apple MCP integration tests..."); try { // Set up test data in Apple apps await testDataManager.setupTestData(); console.log("โœ… Test data setup completed"); } catch (error) { console.error("โŒ Failed to set up test data:", error); throw error; } }); afterAll(async () => { console.log("๐Ÿงน Cleaning up Apple MCP test data..."); try { // Clean up test data from Apple apps await testDataManager.cleanupTestData(); console.log("โœ… Test data cleanup completed"); } catch (error) { console.error("โš ๏ธ Failed to clean up test data:", error); // Don't throw here to avoid masking test results } }); export { TEST_DATA };