vibetunnel/web/test-beta15-simple.sh
Peter Steinberger 1ee6d50bab fix: Git repository integration test - properly set up Git repository state
- Fix the failing test 'should include Git info in session creation request'
- Test now properly calls checkGitRepository() to populate currentBranch and selectedBaseBranch
- Ensures Git info is correctly included in session creation requests when repository is detected
- Fixes test by making selectedBaseBranch match currentBranch to avoid branch switching warning path

Test was failing because gitRepoPath was undefined in request body, now properly includes Git repo path and branch information.
2025-08-02 03:02:19 +02:00

48 lines
No EOL
1.2 KiB
Bash
Executable file

#!/bin/bash
set -e
echo "Simple test of VibeTunnel npm package beta 15"
echo "============================================="
# Create a temporary directory
TEMP_DIR=$(mktemp -d)
cd "$TEMP_DIR"
echo "Working in: $TEMP_DIR"
# Initialize npm project
echo '{"name": "test-vibetunnel", "version": "1.0.0"}' > package.json
# Install VibeTunnel beta 15
echo -e "\nInstalling vibetunnel@1.0.0-beta.15..."
npm install vibetunnel@1.0.0-beta.15 --ignore-scripts --no-save 2>&1 | tail -20
# Check what was installed
echo -e "\nChecking installed package..."
echo "Package version:"
node -e "console.log(require('./node_modules/vibetunnel/package.json').version)"
echo -e "\nPackage files:"
ls -la node_modules/vibetunnel/ | head -20
echo -e "\nBinary file:"
if [ -f "node_modules/vibetunnel/bin/vibetunnel" ]; then
echo "✅ Binary exists at node_modules/vibetunnel/bin/vibetunnel"
head -5 node_modules/vibetunnel/bin/vibetunnel
else
echo "❌ Binary not found"
fi
echo -e "\nDist directory:"
if [ -d "node_modules/vibetunnel/dist" ]; then
echo "✅ Dist directory exists"
ls node_modules/vibetunnel/dist/
else
echo "❌ Dist directory not found"
fi
# Cleanup
cd /
rm -rf "$TEMP_DIR"
echo -e "\n✅ Beta 15 package structure verified!"