Skip to content

fix(presets): fix Next.js Docker e2e test reliability#47

Merged
dviejokfs merged 1 commit intomainfrom
fix/nextjs-e2e-test
Mar 29, 2026
Merged

fix(presets): fix Next.js Docker e2e test reliability#47
dviejokfs merged 1 commit intomainfrom
fix/nextjs-e2e-test

Conversation

@dviejokfs
Copy link
Copy Markdown
Contributor

Summary

  • Test was failing due to 3 issues: stale Docker cache, macOS node_modules in build context, and hardcoded port conflicts
  • Added .dockerignore, --no-cache, dynamic port, and stale container cleanup

Test plan

  • cargo test --lib -p temps-presets — 192 passed, 0 failed

- Add .dockerignore to exclude node_modules from build context
  (local macOS binaries overwrote Docker-installed ones via COPY . .)
- Remove node_modules from copied fixture before Docker build
- Use --no-cache flag to prevent stale Docker layer cache issues
- Use dynamic port instead of hardcoded 3099 to avoid bind conflicts
- Clean up stale containers from previous test runs before starting
@dviejokfs dviejokfs merged commit fb9e79c into main Mar 29, 2026
4 of 6 checks passed
@dviejokfs dviejokfs deleted the fix/nextjs-e2e-test branch March 29, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant