From d0402d3b8fde73a7cd07815a00c56f03c39420fb Mon Sep 17 00:00:00 2001 From: Simen Bekkhus Date: Wed, 21 Feb 2018 08:46:26 +0100 Subject: [PATCH] mapCoverage removed from Jest --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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: