diff --git a/README.md b/README.md index 790786b1..192aa96e 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ To define vue-jest as a transformer for your .vue files, you need to map .vue fi }, ``` -To use source maps, you need to set `mapCoverage` to `true`. A full config will look like this. +A full config will look like this. ```json { @@ -31,12 +31,13 @@ To use source maps, you need to set `mapCoverage` to `true`. A full config will "transform": { "^.+\\.js$": "/node_modules/babel-jest", ".*\\.(vue)$": "/node_modules/vue-jest" - }, - "mapCoverage": true + } } } ``` +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. + ## Example Projects Example repositories testing Vue components with jest and vue-jest: