vibetunnel/web/Dockerfile.test-beta15
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

26 lines
No EOL
665 B
Docker

# Test VibeTunnel beta 15 npm package
FROM node:22-slim
# Install system dependencies including build tools
RUN apt-get update && apt-get install -y \
curl \
git \
python3 \
python3-pip \
build-essential \
libpam0g-dev \
&& rm -rf /var/lib/apt/lists/*
# Create test directory
WORKDIR /test
# Create a test package.json
RUN echo '{"name": "vibetunnel-test", "version": "1.0.0", "type": "module"}' > package.json
# Install VibeTunnel beta 15 (skip postinstall due to bug)
RUN npm install vibetunnel@1.0.0-beta.15 --ignore-scripts
# Copy test script
COPY test-vibetunnel-beta15.js test-vibetunnel.js
CMD ["node", "test-vibetunnel.js"]