TZ=UTC のテストスクリプトを cross-env 経由にしてWindowsで動くようにする#6406
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughテストおよびウォッチモードのスクリプトで、 Changesテスト環境設定
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
@coderabbitai review |
✅ Action performedReview finished.
|
概要
npm test/npm run watch:testのTZ=UTC環境変数指定が Windows の PowerShell / cmd では解釈されずコマンドが失敗していたため、cross-env経由に変更してクロスプラットフォームで動くようにしました。変更の種類
変更内容
package.jsonのtestをTZ=UTC jest→cross-env TZ=UTC jestに変更package.jsonのwatch:testをTZ=UTC jest --watch→cross-env TZ=UTC jest --watchに変更cross-env(^10.1.0)は既に devDependencies に存在し、android/iosスクリプトでも利用済みのため依存追加は不要テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit