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

remove coveragePathIgnorePattern use Negated Pattern on collectCoverageFrom instead #10807

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,7 +1,7 @@
## master

### Features

- `[jest-cli, jest-config]` [**BREAKING**] Remove `coveragePathIgnorePatterns` config, use `Negated Pattern on collectCoverageFrom` instead ([#10807](https://github.com/facebook/jest/pull/10807))
- `[jest-config]` [**BREAKING**] Default to Node testing environment instead of browser (JSDOM) ([#9874](https://github.com/facebook/jest/pull/9874))
- `[jest-runner]` [**BREAKING**] set exit code to 1 if test logs after teardown ([#10728](https://github.com/facebook/jest/pull/10728))

Expand Down
187 changes: 187 additions & 0 deletions e2e/__tests__/__snapshots__/coverageRemapping.test.ts.snap
Expand Up @@ -344,5 +344,192 @@ Object {
},
},
},
"typescriptPreprocessor.js": Object {
"b": Object {
"0": Array [
0,
0,
],
"1": Array [
0,
0,
],
},
"branchMap": Object {
"0": Object {
"line": 12,
"loc": Object {
"end": Object {
"column": 5,
"line": 24,
},
"start": Object {
"column": 4,
"line": 12,
},
},
"locations": Array [
Object {
"end": Object {
"column": 5,
"line": 24,
},
"start": Object {
"column": 4,
"line": 12,
},
},
Object {
"end": Object {
"column": 5,
"line": 24,
},
"start": Object {
"column": 4,
"line": 12,
},
},
],
"type": "if",
},
"1": Object {
"line": 12,
"loc": Object {
"end": Object {
"column": 53,
"line": 12,
},
"start": Object {
"column": 8,
"line": 12,
},
},
"locations": Array [
Object {
"end": Object {
"column": 28,
"line": 12,
},
"start": Object {
"column": 8,
"line": 12,
},
},
Object {
"end": Object {
"column": 53,
"line": 12,
},
"start": Object {
"column": 32,
"line": 12,
},
},
],
"type": "binary-expr",
},
},
"f": Object {
"0": 0,
},
"fnMap": Object {
"0": Object {
"decl": Object {
"end": Object {
"column": 3,
"line": 11,
},
"start": Object {
"column": 2,
"line": 11,
},
},
"line": 11,
"loc": Object {
"end": Object {
"column": 3,
"line": 26,
},
"start": Object {
"column": 21,
"line": 11,
},
},
"name": "(anonymous_0)",
},
},
"inputSourceMap": null,
"path": "typescriptPreprocessor.js",
"s": Object {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
},
"statementMap": Object {
"0": Object {
"end": Object {
"column": 33,
"line": 8,
},
"start": Object {
"column": 12,
"line": 8,
},
},
"1": Object {
"end": Object {
"column": 2,
"line": 27,
},
"start": Object {
"column": 0,
"line": 10,
},
},
"2": Object {
"end": Object {
"column": 5,
"line": 24,
},
"start": Object {
"column": 4,
"line": 12,
},
},
"3": Object {
"end": Object {
"column": 8,
"line": 19,
},
"start": Object {
"column": 21,
"line": 13,
},
},
"4": Object {
"end": Object {
"column": 8,
"line": 23,
},
"start": Object {
"column": 6,
"line": 20,
},
},
"5": Object {
"end": Object {
"column": 15,
"line": 25,
},
"start": Object {
"column": 4,
"line": 25,
},
},
},
},
}
`;