note
: Tests with browser, use atool-test
Simple configuration, run tests with jsdom.
npm install atool-test-mocha --save-dev
"srcipts": {
"test": "atool-test-mocha"
}
--coverage
: coverage output;--custom-compiler
: set path of custom compiler file;- support mocha cli options (
--bail
,--timeout
,--watch
,--recursive
...)
default tests dir test
, cutom dir atool-test-mocha ${customDirName}