Skip to content

The "nutra-jasmine-coverage-babel-preset" module makes available the jasmine behavior-driven testing framework, the Istanbul code coverage tool, the babel transpiler and the commonjs module loader to the N.U.T.R.A. unit test runner.

License

Notifications You must be signed in to change notification settings

m-a-r-c-e-l-i-n-o/nutra-jasmine-coverage-babel-preset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nutra-jasmine-coverage-babel-preset

The "nutra-jasmine-coverage-babel-preset" module makes available the jasmine behavior-driven testing framework, the Istanbul code coverage tool, the babel transpiler and the commonjs module loader to the N.U.T.R.A. unit test runner.

Install Preset:

npm install --save-dev nutra nutra-jasmine-coverage-babel-preset

Add Preset Configuration:

Create a "nutra.config.js" config file in the root of your project and populate it with the following:

// nutra.config.js
module.exports = function( config ) {
  config.set({
    frameworks: ['nutra-jasmine'],
    files: ['test/specs/**/*.js', 'src/**/*.js'], // Modify to include your own app & spec files
    preprocessors: {
        'test/specs/**/*.js': ['nutra-babel'], // Modify to include your spec files.
        'src/**/*.js': ['nutra-babel', 'nutra-coverage'] // Modify to include your app files.
    },
    reporters: ['nutra-coverage'],
    babelOptions: {
      configFile: './.babelrc'
      // For more transpiling options, see:
      // https://github.com/m-a-r-c-e-l-i-n-o/nutra-babel
    },
    coverageOptions: {
      reporters: [
        { type: 'html', subdir: '.' }
      ]
      // For more coverage options, see:
      // https://github.com/m-a-r-c-e-l-i-n-o/nutra-coverage
    }
  })
  // For more configuration options, see:
  // https://github.com/m-a-r-c-e-l-i-n-o/nutra#configuration-anatomy
}

About

The "nutra-jasmine-coverage-babel-preset" module makes available the jasmine behavior-driven testing framework, the Istanbul code coverage tool, the babel transpiler and the commonjs module loader to the N.U.T.R.A. unit test runner.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published