mocha
A feature-rich JavaScript test framework. More information: https://mochajs.org/#command-line-usage.
- Run tests with default configuration or as configured in
mocha.opts:
mocha
- Run tests contained at a specific location:
mocha
- Run tests that match a specific
greppattern:
mocha
- Run tests on changes to JavaScript files in the current directory and once initially:
mocha
- Run tests with a specific reporter:
mocha
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
