/** * 測試根路徑定義 * Test root path definitions * * 提供測試檔案共用的路徑常數,避免使用相對路徑 * Provides shared path constants for test files to avoid using relative paths */ import { join } from "path"; /** 套件根目錄 / Package root directory */ export const __ROOT = join(__dirname, '..'); /** 作業系統判斷 / Operating system detection */ 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');