A code coverage tool for ES6 using Babel, built on top of Istanbul. Latest version is 4.1.1, released to support Babel 6.x. The project is unmaintained as of 2016 and deprecated in favor of Istanbul with its own Babel support. It provides CLI and Karma integration for instrumenting ES6 code, but lacks updates and may not work with modern Babel versions. Consider using babel-plugin-istanbul or @istanbuljs/nyc-config-babel instead.
npm install ispartaVerified import paths — ran on the pinned version, not inferred.
Demonstrates installation, Babel configuration, CLI usage, and Karma integration for ES6 code coverage.
Switch to nyc with babel-plugin-istanbul: npm install --save-dev nyc babel-plugin-istanbul
If using Babel 5, stick with isparta@3.x. For Babel 6+, use isparta@4.x with appropriate presets.
Use npx babel-node node_modules/.bin/isparta ... or add to scripts in package.json with babel-node.
Use douglasduteil/karma-coverage#next or upgrade to nyc and karma-nyc-reporter.
Test thoroughly; consider using .istanbul.yml for configuration but beware of breaking changes.
Use babel-node node_modules/.bin/isparta cover ...
Install babel-core: npm install --save-dev babel-core
Check karma-coverage fork and use proper instrumenterOptions: { isparta: { babel: { presets: ['es2015'] } } }Use isparta@3.5.3 with istanbul@0.4.0 or check node_modules for conflicts