Skip to content

chore: ignore Playwright output in ESLint and Prettier - #615

Merged
dcalhoun merged 1 commit into
fix/expose-wp-theme-globalfrom
chore/ignore-playwright-output
Sep 2, 2026
Merged

chore: ignore Playwright output in ESLint and Prettier#615
dcalhoun merged 1 commit into
fix/expose-wp-theme-globalfrom
chore/ignore-playwright-output

Conversation

@dcalhoun

@dcalhoun dcalhoun commented Sep 2, 2026

Copy link
Copy Markdown
Member

What?

Add the Playwright output directories, e2e/test-results/ and playwright-report/, to .eslintignore and .prettierignore.

Why?

Git already ignores both directories, but the linters did not. After a local make test-e2e run, make lint-js failed with 227 errors, all inside the generated playwright-report/trace/*.js bundles, and npm run format would rewrite 13 generated files. None of it relates to project code, and the failure only appears on machines that have run the E2E suite locally.

How?

Mirror the existing .gitignore entries in both linter ignore files.

Testing Instructions

  1. Run make test-e2e at least once so both directories exist.
  2. Run make lint-js. It passes.
  3. Run npx prettier --check playwright-report e2e/test-results. It reports nothing to fix.
  4. Run npx prettier --check playwright-report e2e/test-results --ignore-path /dev/null. It flags the generated files, confirming the ignore entries are what suppress them.

Accessibility Testing Instructions

N/A. No UI changes.

Screenshots or screencast

N/A

🤖 Generated with Claude Code

https://claude.ai/code/session_01VnQd7G77gehA2PgnzKvFei

@dcalhoun dcalhoun added the [Type] Build Tooling Issues or PRs related to build tooling label Sep 2, 2026
@wpmobilebot

wpmobilebot commented Sep 2, 2026

Copy link
Copy Markdown

XCFramework Build

This PR's XCFramework is available for testing. Add the following to your Package.swift:

.package(url: "https://github.com/wordpress-mobile/GutenbergKit", branch: "pr-build/615")

Built from c42efce

Local E2E runs write e2e/test-results/ and playwright-report/, which git
already ignores but the linters still walked. The generated report
scripts produced hundreds of ESLint errors and Prettier diffs unrelated
to project code.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VnQd7G77gehA2PgnzKvFei
@dcalhoun
dcalhoun changed the base branch from trunk to fix/expose-wp-theme-global September 2, 2026 13:30
@dcalhoun
dcalhoun force-pushed the chore/ignore-playwright-output branch from 7fd8aed to c42efce Compare September 2, 2026 13:30
@dcalhoun
dcalhoun marked this pull request as ready for review September 2, 2026 13:31
@dcalhoun
dcalhoun requested a review from nbradbury September 2, 2026 13:41

@nbradbury nbradbury left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! :shipit:

@dcalhoun
dcalhoun merged commit 040324d into trunk Sep 2, 2026
26 checks passed
@dcalhoun
dcalhoun deleted the chore/ignore-playwright-output branch September 2, 2026 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Build Tooling Issues or PRs related to build tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants