Node.js path and fs helpers for things like reading fixtures and writing results while running tests.
npm install test-helpers> Node.js path and fs helpers for things like reading fixtures and writing results while running tests.
``bash`
npm i test-helpers --save-dev
`js`
var helpers = require('test-helpers')([options]);
Options
* dir: the base directory for tests. default is testfixtures
* : the base directory for test fixtures. default is test/fixturesactual
* : 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:
`js`
var helpers = require('test-helpers')({
dir: 'test',
fixtures: 'test/fixtures',
dir: 'test/actual'
});
Or use the .option() method:
`js``
helpers.option('dir', 'test');
helpers.option('fixtures', 'test/fixtures');
helpers.option('actual', 'test/actual');
Jon Schlinkert
+ github/jonschlinkert
+ twitter/jonschlinkert
*
_This file was generated by verb-cli on August 11, 2014._