Skip to content

test: get eslintPluginScraps tests running, and fixed use-semantic-token's#109326

Merged
JoshuaKGoldberg merged 1 commit intomasterfrom
eslint-plugin-scraps-testing-enable
Feb 26, 2026
Merged

test: get eslintPluginScraps tests running, and fixed use-semantic-token's#109326
JoshuaKGoldberg merged 1 commit intomasterfrom
eslint-plugin-scraps-testing-enable

Conversation

@JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Feb 25, 2026

Similar to #109310, changes the test extensions from *.spec.mjs to *.spec.js. The m is unnecessary because Jest is configured to treat their syntax as ESM either way.

static/eslint/eslintPluginScraps/src/rules/use-semantic-token.spec.js had some failures in the helper-function-generated invalid cases:

  • Most were using the invalidProperty message ID instead of invalidPropertyWithSuggestion, and missing data.suggestedCategory
  • A few were actually not invalid at all and had zero errors

Fixes https://linear.app/getsentry/issue/ENG-6931/get-eslintpluginscraps-tests-running

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 25, 2026
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review February 25, 2026 16:44
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner February 25, 2026 16:44
Copy link
Member Author

@JoshuaKGoldberg JoshuaKGoldberg Feb 25, 2026

Choose a reason for hiding this comment

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

[Question] I removed invalid* object entries that didn't produce any lint rule reports. Was that correct? Should this change move them to valid, or...?

Copy link
Member

@natemoo-re natemoo-re left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 32fc066 into master Feb 26, 2026
64 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the eslint-plugin-scraps-testing-enable branch February 26, 2026 16:59
@linear
Copy link

linear bot commented Mar 2, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants