docs: add Flutter test proxy workaround to CLAUDE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Misaka_Company
2026-05-21 09:06:25 +08:00
parent c2d9f5fd56
commit 9eb1bde645

View File

@@ -21,3 +21,16 @@ flutter build apk --release
# 2. Install (in-place upgrade, preserves config) # 2. Install (in-place upgrade, preserves config)
adb install -r build/app/outputs/flutter-apk/app-release.apk adb install -r build/app/outputs/flutter-apk/app-release.apk
``` ```
## Flutter Test Rules
Before running `flutter test`, temporarily remove proxy environment variables for the current shell. The Flutter tester uses a localhost WebSocket, and proxy settings can break that connection with `Invalid WebSocket upgrade request`.
### PowerShell
```powershell
$env:HTTP_PROXY=''
$env:HTTPS_PROXY=''
$env:NO_PROXY='localhost,127.0.0.1,::1'
flutter test
```