问题
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