[英]Testing Luxon Datetime with React Testing Library results in error if calling Luxon functions
我找不到這個問題的答案所以如果重復請刪除。 我有使用 React Hook 形式 (7.22.5) 和 Luxon (2.3.1) 的 React (17.0.26) 組件。 這是組件定義本身是這樣的(無法提供完整的組件代碼): 當我嘗試使用 React 測試庫運行測試以僅測試組件時,出現以下錯誤: ...