Bug Report
What is the current behavior?
From what I understood currently by default jest does not perform src coverage extraction for any code that is contained within a /node_modules/. That behavior is determined through the coveragePathIgnorePatterns array of regexp. I have changed it to other value, still coverage extraction is not performed or is erroneous. Please apologize if this was an error on my side.
I have created a sample repository where I try to reproduce some of the sample issues I have came into.
Please refer to the https://github.com/joaocfernandes/jestcov for the following samples.
1. Coverage is not performed, refer to Branch Master
The coverage target file is contained within a src/node_modules/sum.js. The coveragePathIgnorePatterns has an "abcd" regexp. No coverage is extracted. The coverage folder is created at the default location /coverage/.

2. (SOLVED) Coverage is performed but is incorrect, refer to Branch WorkExample
The folder name was renamed from src/node_modules to src/Yeah_modules.
If we run the jest normally the coverage presented reference two different sum.js source files, where which of one does not exists. Global coverage value is incorrect for statements, functions and lines.

3. Coverage is performed but is correct, but file path is incorrect refer to Branch WorkExample
If jest is run ignoring cache the coverage is correctly listed but the src file path is incorrect. It should be listed under src/Yeah_modules/

What is the expected behavior?
Jest should extract coverage taking into account the coveragePathIgnorePatterns , report correct coverage and correct source files path.
WIndows 10
Node v7.8.0
npm 4.2.0
Jest 20.0.4
Bug Report
What is the current behavior?
From what I understood currently by default jest does not perform src coverage extraction for any code that is contained within a /node_modules/. That behavior is determined through the coveragePathIgnorePatterns array of regexp. I have changed it to other value, still coverage extraction is not performed or is erroneous. Please apologize if this was an error on my side.
I have created a sample repository where I try to reproduce some of the sample issues I have came into.
Please refer to the https://github.com/joaocfernandes/jestcov for the following samples.
1. Coverage is not performed, refer to Branch Master
The coverage target file is contained within a src/node_modules/sum.js. The coveragePathIgnorePatterns has an "abcd" regexp. No coverage is extracted. The coverage folder is created at the default location /coverage/.
2. (SOLVED) Coverage is performed but is incorrect, refer to Branch WorkExample
The folder name was renamed from src/node_modules to src/Yeah_modules.
If we run the jest normally the coverage presented reference two different sum.js source files, where which of one does not exists. Global coverage value is incorrect for statements, functions and lines.
3. Coverage is performed but is correct, but file path is incorrect refer to Branch WorkExample
If jest is run ignoring cache the coverage is correctly listed but the src file path is incorrect. It should be listed under src/Yeah_modules/
What is the expected behavior?
Jest should extract coverage taking into account the coveragePathIgnorePatterns , report correct coverage and correct source files path.
WIndows 10
Node v7.8.0
npm 4.2.0
Jest 20.0.4