Conversation
🦋 Changeset detectedLatest commit: a7580c5 The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Caution Review failedAn error occurred during the review process. Please try again later. WalkthroughThis pull request introduces support for Mocha test framework globals within the Test domain of the linter. A changeset documents the patch version bump for Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.changeset/fix-mocha-test-globals.md:
- Line 5: Add the missing Mocha global "suite" to the Test domain globals list:
update the changeset so the Test domain includes "suite" alongside the existing
entries (`context`, `run`, `setup`, `specify`, `suiteSetup`, `suiteTeardown`,
`teardown`, `xcontext`, `xdescribe`, `xit`, `xspecify`) so projects using
Mocha's BDD/TDD interfaces won't see `suite` flagged as an undeclared variable.
Summary
I found this bug while enabling some rules in the Astro monorepo. I asked help of the AI to search for more Mocha globals, and asked for adding a test
Test Plan
Added a new test. Green CI
Docs
It will be automatically updated via codegen