@mwm/describe
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
.