apple-mcp
Version:
Apple MCP tools for contacts, notes, messages, and mail integration
33 lines (27 loc) โข 956 B
text/typescript
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 };