mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-08 11:45:58 +00:00
- 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.
48 lines
No EOL
1.2 KiB
Bash
Executable file
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!" |