UNPKG

test-helpers

Version:

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

54 lines (35 loc) 931 B
# {%= name %} {%= badge("fury") %} > {%= description %} ## Install {%= include("install") %} ## Usage ```js var helpers = require('{%= name %}')([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: ```js var helpers = require('{%= name %}')({ 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'); ``` ## Author {%= include("author") %} ## License {%= copyright() %} {%= license() %} *** {%= include("footer") %}