deptest
depject plugin for tests
Give tests from your depject modules.
Usage
const combine = const first = const deptest = const tests = gives: 'tests' { return { tests'addition' = { } tests'async maths' = { } return tests } } //lines below would normally be in test.js or similar//combine your tests with your other modulesconst modules = //Run the tests!
outputs
✔ addition
✔ async maths
API
Needs
exportsneeds =
Gives
exportsgives =
tests
functions
Giving You give tests
functions from your modules that have the shape:
tests
Where tests is an object that has shape:
{}
Install
With npm installed, run
$ npm install deptest
See Also
License
MIT