Socket
Book a DemoInstallSign in
Socket

test-helpers

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test-helpers

Node.js path and fs helpers for things like reading fixtures and writing results while running tests.

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

test-helpers NPM version

Node.js path and fs helpers for things like reading fixtures and writing results while running tests.

Install

Install with npm:

npm i test-helpers --save-dev

Usage

var helpers = require('test-helpers')([options]);

Options

  • dir: the base directory for tests. default is test
  • fixtures: the base directory for test fixtures. default is test/fixtures
  • actual: the base directory for test results. default is test/actual

Options can be defined on the helpers() function, or with helpers.option().

Examples:

Change the default directories to use for tests:

var helpers = require('test-helpers')({
  dir: 'test',
  fixtures: 'test/fixtures',
  dir: 'test/actual'
});

Or use the .option() method:

helpers.option('dir', 'test');
helpers.option('fixtures', 'test/fixtures');
helpers.option('actual', 'test/actual');

Author

Jon Schlinkert

License

Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license

This file was generated by verb-cli on August 11, 2014.

Keywords

helper

FAQs

Package last updated on 13 Aug 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