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

时光怂恿深爱的人放手 提交于 2019-12-01 11:29:13

I was able to disable Velocity via

VELOCITY=0

Before running the server, so basically I ran

VELOCITY=0 meteor run

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.

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.

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