-
Notifications
You must be signed in to change notification settings - Fork 239
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
fix(no-large-snapshots): run on files of any type #581
Conversation
Codecov Report
@@ Coverage Diff @@
## master #581 +/- ##
==========================================
Coverage ? 100.00%
==========================================
Files ? 45
Lines ? 1398
Branches ? 578
==========================================
Hits ? 1398
Misses ? 0
Partials ? 0 Continue to review full report at Codecov.
|
@graphan this failing danger because you've not provided a description for your PR. @SimenB I think the codecoverage comment has stopped Danger from posting it's comment for some reason? Also, I'm thinking we push this into |
Oh actually danger is failing because of an actual error:
|
@@ -41,11 +41,6 @@ ruleTester.run('no-large-snapshots', rule, { | |||
'toThrowErrorMatchingInlineSnapshot', | |||
), | |||
}, | |||
{ | |||
// "it should return an empty object for non snapshot files" |
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.
nove it to invalid to validate it fails for non .js
?
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'm sorry @SimenB, I don't get your question. Could you rephrase it?
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.
@SimenB bumping up
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.
There is no test that asserts test files with any extension is tested - instead of removing the test that asserts unknown extensions are not tested, change it to verify it is tested
Adjusts
no-large-snapshots
so that it checks files of any type.closes #370