Temporarily disable Meteor testing packages (e.g. Velocity + Mocha) without removing them

若如初见. 提交于 2019-12-01 08:45:03

问题


Mostly all of the testing lines printed to the console get in my way, especially when I'm just setting up a new project or trying to get this one code bit down that the testing framework isn't too helpful for. Any help is appreciated!


回答1:


I was able to disable Velocity via

VELOCITY=0

Before running the server, so basically I ran

VELOCITY=0 meteor run



回答2:


Keep in mind that creating a new Meteor project doesn't install Velocity or Mocha by default, so if you have them it's probably because they were manually installed or part of a boilerplate project that you're using.

Having said that, I think it's safe to remove these packages. More than likely, if you have Velocity and Mocha installed, you need to run the following:

meteor remove mike:mocha velocity:core

There might be other testing-related packages that need to remove. To find out what other packages are installed for your project, you can run the following:

meteor list

Then just remove individual packages as needed.




回答3:


In addition to the VELOCITY=0 environment variable, I've found that pressing Ctrl+V in the client window will temporarily disable Velocity on that client, which will stop the tests from printing things in the console. Pressing it again will re-enable it.



来源:https://stackoverflow.com/questions/27952903/temporarily-disable-meteor-testing-packages-e-g-velocity-mocha-without-remo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!