mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-22 14:06:02 +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.
30 lines
No EOL
861 B
Bash
Executable file
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!" |