Skip to content

Commit 629d737

Browse files
SimenBeddyerburgh
authored andcommitted
docs: mapCoverage removed from Jest (#61)
1 parent 7cf388a commit 629d737

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To define vue-jest as a transformer for your .vue files, you need to map .vue fi
1818
},
1919
```
2020

21-
To use source maps, you need to set `mapCoverage` to `true`. A full config will look like this.
21+
A full config will look like this.
2222

2323
```json
2424
{
@@ -31,12 +31,13 @@ To use source maps, you need to set `mapCoverage` to `true`. A full config will
3131
"transform": {
3232
"^.+\\.js$": "<rootDir>/node_modules/babel-jest",
3333
".*\\.(vue)$": "<rootDir>/node_modules/vue-jest"
34-
},
35-
"mapCoverage": true
34+
}
3635
}
3736
}
3837
```
3938

39+
If you're on a version of Jest older than 22.4.0, you need to set `mapCoverage` to `true` in order to use source maps.
40+
4041
## Example Projects
4142

4243
Example repositories testing Vue components with jest and vue-jest:

0 commit comments

Comments
 (0)