-
Notifications
You must be signed in to change notification settings - Fork 231
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
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.78% 93.80% +0.01%
==========================================
Files 778 778
Lines 18900 18902 +2
Branches 4885 4886 +1
==========================================
+ Hits 17726 17731 +5
+ Misses 1099 1095 -4
- Partials 75 76 +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.
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.
Add a comment explaining why these rules are being ignored
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 could use a little background as to why all of these rules are being ignored. A comment explaining might be enough 😄
870f22b
to
aa84425
Compare
"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.
Add a comment explaining why these rules are being ignored
static/src/js/components/EDSCImage/__tests__/EDSCImage.test.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/GranuleResults/GranuleResultsDownloadNotebookButton.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/GranuleResults/__tests__/GranuleResultsFocusedMeta.test.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/GranuleResults/__tests__/GranuleResultsItem.test.jsx
Outdated
Show resolved
Hide resolved
static/src/js/components/TemporalDisplay/__tests__/TemporalSelectionDropdown.test.jsx
Outdated
Show resolved
Hide resolved
e58ae2d
to
49524ca
Compare
49524ca
to
709855b
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