准备项目

  • 写一些测试

  • 安装调度:mocha-phantomjs :

    meteor add dispatch:mocha-phantomjs
    
  • 将 test-command 添加到 package.json 中。

    {    
      "name": "awesome meteor package",
      "scripts": {
        "test": "meteor test --driver-package dispatch:mocha-phantomjs --once"
      }
    }
    
  • 确保你可以在项目根目录中运行 npm test。