Use plugin-babel-istanbul for codecoverage

This commit is contained in:
Daniel Tschinder 2016-07-13 11:43:31 +02:00
parent 3fad8cc9a7
commit 406cd33ca2
No known key found for this signature in database
GPG Key ID: 0F9471CB6816A4FF
2 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,7 @@
"plugins": ["transform-runtime"],
"env": {
"test": {
"sourceMaps": "inline"
"plugins": ["istanbul"]
}
}
}

View File

@ -18,6 +18,7 @@
"ava": "^0.15.2",
"babel-cli": "^6.0.0",
"babel-helper-fixtures": "^6.6.5",
"babel-plugin-istanbul": "^1.0.3",
"babel-plugin-transform-class-properties": "^6.6.0",
"babel-plugin-transform-runtime": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
@ -42,5 +43,9 @@
"test": "npm run build && npm run lint && ava test/",
"test_cov": "cross-env BABEL_ENV=test npm run build && npm run lint && nyc ava test/",
"watch": "babel src --out-dir lib --watch"
},
"nyc": {
"sourceMap": false,
"instrument": false
}
}