New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

minijasminenodewrap

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minijasminenodewrap

Wraps minijasminenode to allow globbing from options and the CLI

0.0.1
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

minijasminenodewrap

A simple wrapper around minijasminenode2. Mostly used to allow globs from the CLI or within the config.

Install

npm install minijasminenodewrap --save

Use

Minijasminenodewrap looks for a config.js file within the current working directory. The config.js file should return an object of options matching the ones provided to miniJasmineLib.executeSpecs().

module.exports = {
  {
    // An array of filename globs, relative to current dir.
    specs: ['spec/**/*.js'],
    // A function to call on completion.
    // function(passed)
    onComplete: function(passed) { console.log('done!'); },
    // If true, display suite and spec names.
    isVerbose: false,
    // If true, print colors to the terminal.
    showColors: true,
    // If true, include stack traces in failures.
    includeStackTrace: true,
    // Time to wait in milliseconds before a test automatically fails
    defaultTimeoutInterval: 5000
};

minijasminenodewrap allows options.specs to be an array of globs instead of just file paths. The globs will be expanded before running the tests.

You can also invoke minjjasminenodewrap with arguments representing spec globs. If you do this, the globs will replace anything currently listed in options.specs

  $ ./node_modules/.bin/mjnw 'spec/**/*.js' 'more/specs/**/*.js'

Keywords

minijasminenode

FAQs

Package last updated on 21 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts