Skip to content

Add test:all script and isolate E2E on a dedicated port#28

Merged
philosophercode merged 1 commit into
mainfrom
philosophercode/v5-test-all
Jun 2, 2026
Merged

Add test:all script and isolate E2E on a dedicated port#28
philosophercode merged 1 commit into
mainfrom
philosophercode/v5-test-all

Conversation

@philosophercode

Copy link
Copy Markdown
Owner

Summary

Two small follow-ups to the v5 test suite (#26):

  1. npm run test:all — one command that runs linttypecheckvitestplaywright.
  2. E2E port isolation — Playwright now always boots its own mock-backed server on port 3100 with reuseExistingServer: false, instead of reusing whatever is on the default :3000.

Why the port change

Previously, if you had next dev running locally on :3000 against real Notion, Playwright's reuseExistingServer would grab that server instead of starting its own mock-backed one. The E2E specs assert slug-based URLs (/tools/form-4), so against real Notion's UUID slugs (/tools/35d90a97-…) they fail — a false negative that looks like a broken suite. Pinning a dedicated port + never reusing makes E2E deterministic regardless of the local dev environment, and leaves your :3000 server untouched.

Verification

npm run test:all run locally with a real-Notion dev server still running on :3000:

Lint:       clean
tsc:        clean
Vitest:     19 files, 224 tests passed
Playwright: 15 E2E tests passed (on :3100)

🤖 Generated with Claude Code

- New `test:all` script runs lint + typecheck + vitest + playwright in one
  command.
- Playwright now always boots its own mock-backed server on port 3100
  (`reuseExistingServer: false`) instead of reusing whatever is on the default
  port 3000. Previously a local `next dev` running against real Notion on :3000
  would be reused by the E2E run, breaking the slug-based assertions; pinning a
  dedicated port makes E2E deterministic regardless of the local environment.
- Update TESTING.md to document both changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 2, 2026 03:52
@vercel

vercel Bot commented Jun 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
makerlab-tools Ready Ready Preview, Comment Jun 2, 2026 3:54am
makerlab-tools-v5 Ready Ready Preview, Comment Jun 2, 2026 3:54am

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Small follow-ups to the v5 test suite: adds a one-shot test:all script and isolates Playwright E2E onto a dedicated port (3100) with a fresh mock-backed server, preventing collisions with a local next dev running on :3000 against real Notion.

Changes:

  • Adds npm run test:all running lint → typecheck → vitest → playwright.
  • Pins Playwright to npx next dev -p 3100 with reuseExistingServer: false and baseURL http://localhost:3100.
  • Updates TESTING.md to describe the new script and port isolation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
v5/package.json Adds test:all aggregate script.
v5/playwright.config.ts Switches E2E to port 3100 and disables server reuse.
v5/TESTING.md Documents the new script and port isolation behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@philosophercode philosophercode merged commit caaddbb into main Jun 2, 2026
4 checks passed
@philosophercode philosophercode deleted the philosophercode/v5-test-all branch June 2, 2026 03:55
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.

2 participants