mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-03-25 09:25:50 +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.
29 lines
No EOL
677 B
Docker
29 lines
No EOL
677 B
Docker
# Full test of 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-beta15-full.js test.js
|
|
|
|
# Expose test port
|
|
EXPOSE 4021
|
|
|
|
CMD ["node", "test.js"] |