Mocha は JS のテストフレームワークの1つ。 Jest より前はこっちはよく使われてた
というわけで設定していたのだけど、今はもう使ってない。
ひょっとしたらまた使うことがあるかもしれないのでドキュメントには残しておいて tangle による出力を停止する。
レシピは自前で用意していた
(:name mocha
:description "Emacs mode for running mocha tests"
:website "https://github.com/scottaj/mocha.el"
:type github
:pkgname "scottaj/mocha.el")
そしていつも通り el-get-bundle
でインストールしていた
(el-get-bundle mocha)
mocha のテストファイルかどうかを判定してそうだったら mocha としてテストを実行するコマンドを用意していた
(defun my/mocha-test-file ()
(interactive)
(if my/mocha-enable-p
(mocha-test-file)))