@mwm/describe
v2.5.0
Published
Describe is a thin wrapper around Tap that automates common conventions for testing software.
Downloads
3
Readme
@mwm/describe
This is preview release, and doesn't currently do public/private exports.
Describe is a thin wrapper around Tap that automates many of the common conventions I use when testing software. Specifically:
- Each module has a dedicated subfolder.
- The module's source and tests live in that same folder.
- Public exports are made by the module's
index.js
file. - Exports from any other file are private to that module and should never be imported by sibling or parent modules.
For example:
../module/module.js
may import from./helper.js
, but may not import from../sibling/helper.js
.../module/module.js
may import from../sibling/index.js
.