Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to toggle passing file name for spec at point #17

Open
scottaj opened this issue Feb 22, 2016 · 1 comment
Open

Add option to toggle passing file name for spec at point #17

scottaj opened this issue Feb 22, 2016 · 1 comment

Comments

@scottaj
Copy link
Owner

scottaj commented Feb 22, 2016

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.

@Eoksni
Copy link

Eoksni commented Mar 26, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants