-
Notifications
You must be signed in to change notification settings - Fork 71
chore(test): exclude deprecated packages from tests #3207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the test configuration to exclude deprecated packages from the test suite and regenerates the package list to include a missing component.
Key changes:
- Updates Jest configuration to ignore tests in
/deprecated-packages/
directory - Regenerates
ALL_PACKAGES.ts
to include the missing@leafygreen-ui/compound-component
- Adds eslint disable comment for deprecated package test that doesn't follow current conventions
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
tools/test/config/react17/jest.config.js | Adds /deprecated-packages/ to testPathIgnorePatterns |
tools/test/config/jest.config.js | Adds /deprecated-packages/ to testPathIgnorePatterns |
tools/install/src/ALL_PACKAGES.ts | Adds missing @leafygreen-ui/compound-component package |
packages/emotion/src/version.ts | Updates version from 5.0.2 to 5.0.3 |
deprecated-packages/box/src/Box.spec.tsx | Adds eslint disable comment for jest/expect-expect |
Size Change: 0 B Total Size: 1.59 MB ℹ️ View Unchanged
|
✍️ Proposed changes
This PR updates test configuration to properly exclude packages in the
deprecated-packages
directory.Key changes:
'/deprecated-packages/'
totestPathIgnorePatterns
in Jest configs for both default and React 17 environmentsALL_PACKAGES.ts
to include@leafygreen-ui/compound-component
(which was missing)🎟️ Jira ticket: N/A
✅ Checklist
pnpm changeset
and documented my changes🧪 How to test changes
Verify deprecated packages are excluded from tests:
Verify ALL_PACKAGES.ts is correct:
tools/install/src/ALL_PACKAGES.ts
includes@leafygreen-ui/compound-component
Verify compound-component is in the list:
Run full test suite: