/** * 專案根路徑定義 / Project Root Path Definitions * * 集中管理測試相關路徑,避免使用相對路徑造成的維護問題 * Centralized path management for tests to avoid maintenance issues with relative paths */ import { join } from "path"; /** 套件根目錄 / Package root directory */ export const __ROOT = join(__dirname, '..'); /** 作業系統判斷:是否為 Windows 平台 / OS detection: whether running on Windows */ 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');