Skip to content

Karma preprocessor to mute noisy libs and scripts

License

Notifications You must be signed in to change notification settings

pkarny/karma-mute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']
        },
        // ...
    });
};

About

Karma preprocessor to mute noisy libs and scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published