0.2.1 • Published 6 years ago

karma-mute v0.2.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

karma-mute

Karma preprocessor to mute noisy libs and scripts.

Removes all console methods calls from preprocessed files. Replaces any window.console occurrences with noop.

Install

$ npm install karma-mute --save-dev

Usage

Just add the preprocessor to karma.conf.js as plugin and then use the preprocessors section to select files that you want to mute.

module.exports = function(config) {
    config.set({
        plugins: [
            'karma-mute'
        ],
        preprocessors: {
            '**/noisyFile.js': ['mute']
        },
        // ...
    });
};