DEV Community

Tao Liu
Tao Liu

Posted on

How to: npm test stop at first failure (mocha)

npm test -- -b or learn test -- -b (for Flatiron students) is the mocha equivalent of --fail-fast ('b' is for 'bail', as in 'bail at the first failure')

Top comments (0)