Skip to content

Latest commit

History

History
20 lines (13 loc) 路 456 Bytes

Mocha.md

File metadata and controls

20 lines (13 loc) 路 456 Bytes

Mocha

Mocha is supported as a testing framework. It will be auto-detected if available.

Setup

Include this as your first file before including other tests:

mocha ./node_modules/console-fail-test/setup.js src/**/*.test.js

Alternately, if you have a setup file already being run first, or you'd like to manually enable this in individual files, you can use the Node API:

// some.test.js

require("console-fail-test").cft();