all repos — nixfiles @ 160b6167644bd3f9be2f215adb88164f64ffec9f

System and user configuration, managed by nix and home-manager

Emacs: configure mocha.el

Alan Pearce
commit

160b6167644bd3f9be2f215adb88164f64ffec9f

parent

a54540c63ecd95778aa5d6b0a55787ccf009128b

1 file changed, 11 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -2106,6 +2106,17 @@ :after js2-mode
:if (fboundp #'js2--struct-put) :mode (("\\.jsx\\'" . rjsx-mode))) +;;;;;;; mocha + +(use-package mocha + :after js2-mode + :config (progn + (setq mocha-reporter "tap") + (defun mocha-test-project () + "Test the current project." + (interactive) + (mocha-run "'./{src,test}/**/*.test.js'")))) + ;;;;;;; js2-refactor ;; Thanks to the AST provided by js2-mode, refactoring is possible. This