-
Notifications
You must be signed in to change notification settings - Fork 5
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: allow scoped requires in Jest modules #52
Conversation
Codecov Report
@@ Coverage Diff @@
## master #52 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 21 21
Lines 24 25 +1
=====================================
+ Hits 24 25 +1
Continue to review full report at Codecov.
|
'**/?(*.)@(spec|test).js', | ||
'test?(s)/**/*.js', | ||
], | ||
'excludedFiles': testFilePatterns, | ||
// Disable all rules provided by Jest plugin | ||
'rules': Object.keys(jestPlugin.rules).reduce(function (rules, rule) { | ||
rules['jest/' + rule] = 0; | ||
|
||
return rules; | ||
}, {}), |
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.
Can't we start the reduce with these 2 rules disabled?
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.
nvm
'**/?(*.)@(spec|test).js', | ||
'test?(s)/**/*.js', | ||
], | ||
'excludedFiles': testFilePatterns, | ||
// Disable all rules provided by Jest plugin | ||
'rules': Object.keys(jestPlugin.rules).reduce(function (rules, rule) { | ||
rules['jest/' + rule] = 0; | ||
|
||
return rules; | ||
}, {}), |
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.
nvm
Fixes #50