Skip to content
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

Merged
merged 1 commit into from
Mar 18, 2018

Conversation

acostalima
Copy link
Contributor

Fixes #50

@acostalima acostalima requested a review from satazor March 16, 2018 00:54
@codecov
Copy link

codecov bot commented Mar 16, 2018

Codecov Report

Merging #52 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #52   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          21     21           
  Lines          24     25    +1     
=====================================
+ Hits           24     25    +1
Impacted Files Coverage Δ
addons/jest.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08bf0c6...749fa7b. Read the comment docs.

'**/?(*.)@(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;
}, {}),
Copy link
Contributor

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?

Copy link
Contributor

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;
}, {}),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm

@satazor satazor merged commit 6269e6d into master Mar 18, 2018
@satazor satazor deleted the jest-allow-global-require branch March 18, 2018 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants