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
.test/passing-configs
are example real world webpack configs, for which we know they should be valid. They are used as test data insrc/index.test.js
.test/utils
provides test utility functions.