mocha.el icon indicating copy to clipboard operation
mocha.el copied to clipboard

Add option to toggle passing file name for spec at point

Open scottaj opened this issue 8 years ago • 1 comments

Right now when we run the spec at point, we also pass the file name. This can be good in that it is more restrictive in what gets run. However, it can also prevent global init code in other files from getting run.

scottaj avatar Feb 22 '16 06:02 scottaj

As a workaround, you can set

(setq mocha-command "yarn test")

or

(setq mocha-command "npm test -- ")

and then add test script to the scripts in package.json and test all the files there. Then when you do mocha-test-at-point it gets all the filenames anyway.

Eoksni avatar Mar 26 '18 19:03 Eoksni