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

Avoid parsing .require(…) method calls #3777

Merged
merged 1 commit into from
Jun 9, 2017
Merged

Avoid parsing .require(…) method calls #3777

merged 1 commit into from
Jun 9, 2017

Conversation

davidaurelio
Copy link
Contributor

This makes sure that a match for require is not preceded by a dot and whitespace, thus skipping over method calls to .require(…).

This makes sure that a match for `require` is not preceded by a dot and whitespace, thus skipping over method calls to `.require(…)`.
@davidaurelio
Copy link
Contributor Author

cc @cpojer @DmitriiAbramov

@cpojer
Copy link
Member

cpojer commented Jun 9, 2017

You are awesome ❤️

@codecov-io
Copy link

Codecov Report

Merging #3777 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3777   +/-   ##
=======================================
  Coverage   59.82%   59.82%           
=======================================
  Files         191      191           
  Lines        7016     7016           
  Branches        6        6           
=======================================
  Hits         4197     4197           
  Misses       2816     2816           
  Partials        3        3
Impacted Files Coverage Δ
packages/jest-haste-map/src/lib/extractRequires.js 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 81e9ba2...d0fcfab. Read the comment docs.

@cpojer cpojer merged commit 21e8a2a into jestjs:master Jun 9, 2017
tushardhole pushed a commit to tushardhole/jest that referenced this pull request Aug 21, 2017
This makes sure that a match for `require` is not preceded by a dot and whitespace, thus skipping over method calls to `.require(…)`.
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants