-
Notifications
You must be signed in to change notification settings - Fork 224
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
EDSC-4076: Integrate a linter for react-testing-library before the number of those gets too large in EDSC #1844
base: main
Are you sure you want to change the base?
Conversation
ad1ea9e
to
ee6b87b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1844 +/- ##
==========================================
- Coverage 93.81% 93.80% -0.02%
==========================================
Files 777 777
Lines 18867 18869 +2
Branches 4867 4869 +2
==========================================
- Hits 17701 17700 -1
- Misses 1090 1094 +4
+ Partials 76 75 -1 ☔ View full report in Codecov by Sentry. |
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.
We do need to figure out why code-cov is missing some files
"static/src/js/**/*.js" | ||
], | ||
"rules": { | ||
"testing-library/await-async-events": "off", |
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.
Should these be done in the linter package? otherwise EDSC might have a different setup than say MMT. Some of these feel like they aren't bad to ignore though I understand that it would make this PR even larger some comments on why we're doing these would be good to have though
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.
I think that is the point of the eslintrc, not all repos will want this, we need to exclude tests that haven't been converted from enzyme etc.
870f22b
to
aa84425
Compare
Overview
What is the feature?
Adds react testing library eslint plugin to edsc
What is the Solution?
Added edsc specific configs to the lint config, the shared linter config updated version, and updated all the tests that were experiencing new linter errors
What areas of the application does this impact?
Component tests that use react testing library.
Testing
Reproduction steps
npm run lint
Attachments
Please include relevant screenshots or files that would be helpful in reviewing and verifying this change.
Checklist