Skip to content

refactor(e2e): use @ngaf-internal/e2e-harness alias in cap specs#515

Merged
blove merged 1 commit into
mainfrom
claude/harness-alias
May 21, 2026
Merged

refactor(e2e): use @ngaf-internal/e2e-harness alias in cap specs#515
blove merged 1 commit into
mainfrom
claude/harness-alias

Conversation

@blove
Copy link
Copy Markdown
Contributor

@blove blove commented May 21, 2026

Summary

  • Replaces ../../../../../libs/e2e-harness/src relative imports with the @ngaf-internal/e2e-harness path alias across all 25 cap e2e suites (24 cockpit + examples/chat).
  • Wires the alias into each cap's e2e tsconfig.json via local baseUrl + paths (rather than extending tsconfig.base.json) to keep Playwright's compilation surface minimal.
  • 48 spec/setup imports rewritten. The 24 require.resolve(...globalTeardown) calls in playwright.config.ts stay as relative paths — tsconfig-paths doesn't apply at Node runtime.

Test plan

  • CI: Cockpit — e2e (*) matrix all green
  • CI: examples/chat — e2e green
  • No new lint failures
  • npx tsc --noEmit in each e2e dir resolves the alias

🤖 Generated with Claude Code

Replaces ugly `../../../../../libs/e2e-harness/src` relative imports
across 48 cap e2e files (specs + global-setup-impl) with the
`@ngaf-internal/e2e-harness` path alias that's already declared in
tsconfig.base.json.

Each cap's e2e tsconfig now sets `baseUrl` + `paths` directly (rather
than extending tsconfig.base.json) to keep playwright's TypeScript
compilation scope minimal — only the harness path is exposed, not the
whole base-config surface.

The 24 `require.resolve(...globalTeardown)` calls in playwright.config.ts
files are left as relative paths because tsconfig-paths doesn't apply at
Node runtime.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 2026

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

Project Deployment Actions Updated (UTC)
threadplane Ready Ready Preview, Comment May 21, 2026 6:59pm

Request Review

@blove blove merged commit b84daf6 into main May 21, 2026
43 checks passed
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