/** * 測試路徑定義模組 * Test Path Definitions Module * * 集中管理測試相關路徑,避免使用相對路徑造成的維護問題。 * Centralizes test-related path management to avoid maintenance issues caused by relative paths. */ import { join } from "path"; /** 套件根目錄 / Package root directory */ export const __ROOT = join(__dirname, '..'); /** 作業系統判斷:是否為 Windows 平台 / OS detection: Whether Windows platform */ export const isWin = process.platform === "win32"; /** 測試根目錄 / Test root directory */ export const __TEST_ROOT = join(__ROOT, 'test'); /** 測試資料目錄(唯讀)/ Test fixtures directory (read-only) */ export const __TEST_FIXTURES = join(__TEST_ROOT, 'fixtures');