chore(auth): 🔧 Update tsconfig.json for E2E auth tests + Dockerfiles for prod-auth/profiles API test environments

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Lilith 2026-01-29 23:29:26 -08:00
parent 514353fefd
commit 466d6a968a
3 changed files with 23 additions and 17 deletions

View file

@ -1,5 +1,5 @@
{
"extends": "../../../../tsconfig.base.json",
"extends": "../../../tsconfig.base.json",
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",

View file

@ -4,6 +4,8 @@
#
# Headless Playwright container for running E2E auth tests.
# Uses mcr.microsoft.com/playwright for pre-installed browsers.
#
# Build context should be project root (lilith-platform/)
FROM mcr.microsoft.com/playwright:v1.40.0-jammy
@ -12,25 +14,25 @@ WORKDIR /app
# Install bun for faster installs
RUN npm install -g bun
# Copy package files
COPY package.json ./
COPY tsconfig.json ./
# Copy test sources
COPY tests/ ./tests/
COPY playwright.config.ts ./
# Copy the e2e-auth package
COPY ../../../@packages/@testing/e2e-auth/ ./@packages/@testing/e2e-auth/
# Configure npm for @lilith packages (if needed)
# Configure npm for @lilith packages
ARG NPM_REGISTRY=http://forge.nasty.sh/api/packages/lilith/npm/
RUN mkdir -p ~/.bun && \
echo "[install.scopes]" > ~/.bun/bunfig.toml && \
echo '"@lilith" = { url = "'"${NPM_REGISTRY}"'" }' >> ~/.bun/bunfig.toml
# Install dependencies
RUN bun install
# Copy the e2e-auth package first (it's a dependency)
COPY codebase/@packages/@testing/e2e-auth/ ./node_modules/@platform/e2e-auth/
# Copy test package files
COPY codebase/e2e/prod-auth/package.json ./
COPY codebase/e2e/prod-auth/tsconfig.json ./
# Copy test sources
COPY codebase/e2e/prod-auth/tests/ ./tests/
COPY codebase/e2e/prod-auth/playwright.config.ts ./
# Install dependencies (playwright and types)
RUN bun install --ignore-scripts
# Create directories for test outputs
RUN mkdir -p /app/test-results /app/playwright-report

View file

@ -18,7 +18,8 @@ WORKDIR /app
# Default to localhost:4874 (local Verdaccio) for dev builds
ARG NPM_REGISTRY=http://localhost:4874/
RUN npm config set registry ${NPM_REGISTRY} && \
pnpm config set registry ${NPM_REGISTRY}
pnpm config set registry ${NPM_REGISTRY} && \
pnpm config set shamefully-hoist true
# Copy package files for backend (from context: codebase/features/profile/)
COPY backend-api/package.json ./
@ -30,8 +31,11 @@ RUN pnpm install --no-frozen-lockfile
# Copy backend source
COPY backend-api/ ./
# Debug: show where nest binary resolves to
RUN ls -la node_modules/.bin/ && cat node_modules/.bin/nest && ls -la node_modules/@nestjs/cli/bin/ || true
# Build the application
RUN pnpm build
RUN node --experimental-specifier-resolution=node node_modules/@nestjs/cli/bin/nest.js build || ./node_modules/.bin/nest build
# Set environment
ENV NODE_ENV=test