docs: add Flutter test proxy workaround to CLAUDE.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
13
CLAUDE.md
13
CLAUDE.md
@@ -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
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user