malta-mocha

1.0.18 • Public • Published

npm version npm downloads npm downloads

This plugin can be used on: .js files and even on .coffee and .ts files after using the right plugin

The plugin will run mocha on the testfolder found in the execution path.

Sample usage:

malta app/script/main.js public/js -plugins=malta-mocha

or in the .json file :

"app/script/main.js" : "public/js -plugins=malta-mocha"

or in a script :

var Malta = require('malta');
Malta.get().check([
    'app/script/main.js',
    'public/js',
    '-plugins=malta-mocha'
    ]).start(function (o) {
        var s = this;
        console.log('name : ' + o.name)
        console.log("content : \n" + o.content);
        'plugin' in o && console.log("plugin : " + o.plugin);
        console.log('=========');
    });

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i malta-mocha

    Weekly Downloads

    0

    Version

    1.0.18

    License

    MIT

    Unpacked Size

    2.97 kB

    Total Files

    4

    Last publish

    Collaborators

    • fedeghe