This library colocates test files with implementations. This means that for src/index.js
you will find a src/index.test.js
that tests the former.
The test
directory contains general test setup, utils and fixtures (data used for testing):
test/mocha.opts
is a convention file loaded by mocha for specifying the command line arguments. We tell it to requiretest/setup.js
, which will callbabel-register
with a babel-plugin that overwrites node's builtinassert
functionality withpower-assert
.