node-tdd
Test wrapper to abstract commonly used test setups
Install
Install with npm:
$ npm install --save node-tdd
Usage
Please see tests for usage examples.
Options
useTmpDir
Type: boolean
Default: false
When set to true, a fresh temporary directory is set up for each test. The directory is cleaned up after the test run has completed.
useNock
Type: boolean
Default: false
When set to true, all requests are automatically nocked. The recording files are automatically created relative to the current test file.
envVars
Type: object
Default: {}
Used to declare environment variables per describe. Environment variables are also picked up from shadow files as e.g. test.spec.js.env.yml
.
To allow overwriting of environment variables prefix the name of the environment variable with ^
.