vibetunnel/web/test-npm-beta.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

30 lines
No EOL
861 B
Bash
Executable file

#!/bin/bash
set -e
echo "Testing VibeTunnel with latest npm via Docker"
echo "============================================="
# Change to web directory
cd "$(dirname "$0")"
# Build the Docker image
echo "Building Docker image with latest npm..."
docker build -t vibetunnel-npm-latest .
# Show npm and node versions
echo -e "\nNPM and Node versions in container:"
docker run --rm vibetunnel-npm-latest sh -c "echo 'Node:' && node --version && echo 'NPM:' && npm --version && echo 'PNPM:' && pnpm --version"
# Run tests
echo -e "\nRunning unit tests..."
docker run --rm vibetunnel-npm-latest pnpm run test:ci
# Run typecheck
echo -e "\nRunning type checks..."
docker run --rm vibetunnel-npm-latest pnpm run typecheck
# Run lint
echo -e "\nRunning linters..."
docker run --rm vibetunnel-npm-latest pnpm run lint
echo -e "\nAll tests passed with latest npm!"