Commit 2ae848c6 authored by Robert Knight's avatar Robert Knight

Exclude tests and test utilities from code coverage metrics

Configure babel-plugin-istanbul to avoid adding instrumentation to JS /
CoffeeScript files under directories named "test".

See https://github.com/istanbuljs/babel-plugin-istanbul#ignoring-files
parent dd43a0db
...@@ -69,7 +69,11 @@ module.exports = function(config) { ...@@ -69,7 +69,11 @@ module.exports = function(config) {
// The transpiled CoffeeScript is fed through Babelify to add // The transpiled CoffeeScript is fed through Babelify to add
// code coverage instrumentation for Istanbul. // code coverage instrumentation for Istanbul.
extensions: ['.js', '.coffee'], extensions: ['.js', '.coffee'],
plugins: ['babel-plugin-istanbul'], plugins: [
['babel-plugin-istanbul', {
'exclude': ['**/test/**/*.{coffee,js}'],
}],
],
}], }],
], ],
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment